Sha256: edde42649b9a59f4ee2128892ceb4d4aaf090bde776cccba138c81179ac8aeb7

Contents?: true

Size: 662 Bytes

Versions: 56

Compression:

Stored size: 662 Bytes

Contents

Capistrano::Configuration.instance(:must_exist).load do
  desc "Execute an arbitrary rake task on slices with a specified role (ROLES=x,y,z TASK=p)"
  task :rake do
    task = ENV['TASK']
    run "cd #{current_path} && rake #{task} RAILS_ENV=#{rails_env}"
  end

  desc "Execute an arbitrary runner command on slices with a specified role (ROLES=x,y,z CMD=p)"
  task :runner do
    cmd = ENV['CMD']
    run "cd #{current_path} && script/runner -e #{rails_env} '#{cmd}'"
  end
  
  desc "Execute an arbitrary UNIX command on slices with a specified role (ROLES=x,y,z CMD=p)"
  task :command do
    cmd = ENV['CMD']
    run "cd #{current_path} && #{cmd}"
  end
end

Version data entries

56 entries across 56 versions & 2 rubygems

Version Path
factorylabs-fdlcap-0.3.21 lib/fdlcap/recipes/rake.rb
factorylabs-fdlcap-0.3.23 lib/fdlcap/recipes/rake.rb
factorylabs-fdlcap-0.3.24 lib/fdlcap/recipes/rake.rb
factorylabs-fdlcap-0.3.25 lib/fdlcap/recipes/rake.rb
factorylabs-fdlcap-0.3.26 lib/fdlcap/recipes/rake.rb
factorylabs-fdlcap-0.3.27 lib/fdlcap/recipes/rake.rb
factorylabs-fdlcap-0.3.28 lib/fdlcap/recipes/rake.rb
factorylabs-fdlcap-0.3.3 lib/fdlcap/recipes/rake.rb
factorylabs-fdlcap-0.3.4 lib/fdlcap/recipes/rake.rb
factorylabs-fdlcap-0.3.5 lib/fdlcap/recipes/rake.rb
factorylabs-fdlcap-0.3.6 lib/fdlcap/recipes/rake.rb
factorylabs-fdlcap-0.3.7 lib/fdlcap/recipes/rake.rb
factorylabs-fdlcap-0.3.8 lib/fdlcap/recipes/rake.rb
factorylabs-fdlcap-0.3.9 lib/fdlcap/recipes/rake.rb
fdlcap-0.4.17 lib/fdlcap/recipes/rake.rb
fdlcap-0.4.15 lib/fdlcap/recipes/rake.rb
fdlcap-0.4.14 lib/fdlcap/recipes/rake.rb
fdlcap-0.4.13 lib/fdlcap/recipes/rake.rb
fdlcap-0.4.12 lib/fdlcap/recipes/rake.rb
fdlcap-0.4.11 lib/fdlcap/recipes/rake.rb