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