Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

capistrano-clockwork

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

capistrano-clockwork

  • 1.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Capistrano::Clockwork

Integrate clockwork gem with capistrano

Installation

Dependency Status

Add this line to your application's Gemfile:

gem 'daemons'
gem 'capistrano-clockwork'

or:

gem 'daemons'
gem 'capistrano-clockwork', group: :development

Make sure the daemons gem is required in production. And then execute:

$ bundle

Usage

    # Capfile

    require 'capistrano/clockwork'

Configurable options, shown here with defaults: By default the gem expects a the clockwork script to be present in the lib folder


    :clockwork_default_hooks = true
    :clockwork_file = "lib/clockwork.rb"
    :clockwork_role = :app

To override the defaults just change it in your Capfile

To Change the clockscript location


    set :clockwork_file, "clockwork.rb"

To remove the default hooks

By default the clockwork daemon is restarted everytime you deploy to your server


    set :clockwork_default_hooks, false

To change server role

By default the clockwork will be deployed with :app role


    set :clockwork_role, :app

Other capistrano tasks

By default the clockwork daemon is restarted everytime you deploy to your server


	cap clockwork:restart  #=> Restarts your clockwork instance
	cap clockwork:stop     #=> Stops the clockwork daemon
	cap clockwork:status   #=> Checks if clockwork daemon is running
	cap clockwork:start	   #=> Starts the clockwork daemon

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
  6. Build your gem using the rake command rake build

FAQs

Package last updated on 02 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc