mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Make ST rails rake tasks more configurable
git-svn-id: http://svn.rubyonrails.org/rails/tools/switchtower@3603 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
0fcc748bdd
commit
3ff7518348
2 changed files with 8 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
||||||
*0.11.0* *SVN*
|
*0.11.0* *SVN*
|
||||||
|
|
||||||
|
* Make ST rails rake tasks more configurable
|
||||||
|
|
||||||
* Add Actor#current_task and simplify Task#servers
|
* Add Actor#current_task and simplify Task#servers
|
||||||
|
|
||||||
* Add Actor#connect! method for working around lazy connection establishing
|
* Add Actor#connect! method for working around lazy connection establishing
|
||||||
|
|
|
@ -10,7 +10,11 @@ def switchtower_invoke(*actions)
|
||||||
# no rubygems to load, so we fail silently
|
# no rubygems to load, so we fail silently
|
||||||
end
|
end
|
||||||
|
|
||||||
require 'switchtower/cli'
|
options = actions.last.is_a?(Hash) ? actions.pop : {}
|
||||||
|
|
||||||
|
args = %w[-r config/deploy]
|
||||||
|
verbose = options[:verbose] || "-vvvvv"
|
||||||
|
args << verbose
|
||||||
|
|
||||||
args = %w[-vvvvv -r config/<%= recipe_file %>]
|
args = %w[-vvvvv -r config/<%= recipe_file %>]
|
||||||
args.concat(actions.map { |act| ["-a", act.to_s] }.flatten)
|
args.concat(actions.map { |act| ["-a", act.to_s] }.flatten)
|
||||||
|
@ -34,7 +38,7 @@ end
|
||||||
|
|
||||||
desc "Enumerate all available deployment tasks"
|
desc "Enumerate all available deployment tasks"
|
||||||
task :show_deploy_tasks do
|
task :show_deploy_tasks do
|
||||||
switchtower_invoke :show_tasks
|
switchtower_invoke :show_tasks, :verbose => ""
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Execute a specific action using switchtower"
|
desc "Execute a specific action using switchtower"
|
||||||
|
|
Loading…
Reference in a new issue