Sha256: 811871b020fb7c6904d35b07ef5ca2ee0106ddd86fa92db2a206ae45c36ba11e

Contents?: true

Size: 509 Bytes

Versions: 19

Compression:

Stored size: 509 Bytes

Contents

require 'capistrano'

if Capistrano::Configuration.instance
  Capistrano::Configuration.instance.load do
    namespace :instrumental do
      desc "restart daemonized server; also starts up if not running"
      task :restart_instrument_server do
        run "cd #{current_path} && bundle exec instrument_server -k #{instrumental_key} -d restart"
      end
    end

    after "deploy", "instrumental:restart_instrument_server"
    after "deploy:migrations", "instrumental:restart_instrument_server"
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
instrumental_tools-1.1.4 lib/instrumental_tools/capistrano.rb
instrumental_tools-1.1.3 lib/instrumental_tools/capistrano.rb
instrumental_tools-1.0.0 lib/instrumental_tools/capistrano.rb
instrumental_tools-1.0.0.rc2 lib/instrumental_tools/capistrano.rb
instrumental_tools-1.0.0.pre.2 lib/instrumental_tools/capistrano.rb
instrumental_tools-1.0.0.pre.1 lib/instrumental_tools/capistrano.rb
instrumental_tools-0.6.0 lib/instrumental_tools/capistrano.rb
instrumental_tools-0.5.8 lib/instrumental_tools/capistrano.rb
instrumental_tools-0.5.7 lib/instrumental_tools/capistrano.rb
instrumental_tools-0.5.6 lib/instrumental_tools/capistrano.rb
instrumental_tools-0.5.5 lib/instrumental_tools/capistrano.rb
instrumental_tools-0.5.4 lib/instrumental_tools/capistrano.rb
instrumental_tools-0.5.3 lib/instrumental_tools/capistrano.rb
instrumental_tools-0.5.2 lib/instrumental_tools/capistrano.rb
instrumental_tools-0.5.1 lib/instrumental_tools/capistrano.rb
instrumental_tools-0.5.0 lib/instrumental_tools/capistrano.rb
instrumental_tools-0.4.2 lib/instrumental_tools/capistrano.rb
instrumental_tools-0.4.1 lib/instrumental_tools/capistrano.rb
instrumental_tools-0.4.0 lib/instrumental_tools/capistrano.rb