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.1.0 lib/fdlcap/rake.rb
factorylabs-fdlcap-0.2.0 lib/fdlcap/recipes/rake.rb
factorylabs-fdlcap-0.2.1 lib/fdlcap/recipes/rake.rb
factorylabs-fdlcap-0.2.2 lib/fdlcap/recipes/rake.rb
factorylabs-fdlcap-0.2.3 lib/fdlcap/recipes/rake.rb
factorylabs-fdlcap-0.2.4 lib/fdlcap/recipes/rake.rb
factorylabs-fdlcap-0.2.5 lib/fdlcap/recipes/rake.rb
factorylabs-fdlcap-0.2.6 lib/fdlcap/recipes/rake.rb
factorylabs-fdlcap-0.2.7 lib/fdlcap/recipes/rake.rb
factorylabs-fdlcap-0.3.0 lib/fdlcap/recipes/rake.rb
factorylabs-fdlcap-0.3.1 lib/fdlcap/recipes/rake.rb
factorylabs-fdlcap-0.3.10 lib/fdlcap/recipes/rake.rb
factorylabs-fdlcap-0.3.11 lib/fdlcap/recipes/rake.rb
factorylabs-fdlcap-0.3.15 lib/fdlcap/recipes/rake.rb
factorylabs-fdlcap-0.3.16 lib/fdlcap/recipes/rake.rb
factorylabs-fdlcap-0.3.17 lib/fdlcap/recipes/rake.rb
factorylabs-fdlcap-0.3.18 lib/fdlcap/recipes/rake.rb
factorylabs-fdlcap-0.3.19 lib/fdlcap/recipes/rake.rb
factorylabs-fdlcap-0.3.2 lib/fdlcap/recipes/rake.rb
factorylabs-fdlcap-0.3.20 lib/fdlcap/recipes/rake.rb