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
fdlcap-0.4.10 lib/fdlcap/recipes/rake.rb
fdlcap-0.4.9 lib/fdlcap/recipes/rake.rb
fdlcap-0.4.7 lib/fdlcap/recipes/rake.rb
fdlcap-0.4.6 lib/fdlcap/recipes/rake.rb
fdlcap-0.4.5 lib/fdlcap/recipes/rake.rb
fdlcap-0.4.4 lib/fdlcap/recipes/rake.rb
fdlcap-0.4.3 lib/fdlcap/recipes/rake.rb
fdlcap-0.4.2 lib/fdlcap/recipes/rake.rb
fdlcap-0.4.0 lib/fdlcap/recipes/rake.rb
fdlcap-0.3.35 lib/fdlcap/recipes/rake.rb
fdlcap-0.3.34 lib/fdlcap/recipes/rake.rb
fdlcap-0.3.33 lib/fdlcap/recipes/rake.rb
fdlcap-0.3.31 lib/fdlcap/recipes/rake.rb
fdlcap-0.3.30 lib/fdlcap/recipes/rake.rb
fdlcap-0.3.29 lib/fdlcap/recipes/rake.rb
fdlcap-0.3.28 lib/fdlcap/recipes/rake.rb