server/files/usr/local/ec2onrails/bin/exec_runner in pauldowman-ec2onrails-0.9.10.0 vs server/files/usr/local/ec2onrails/bin/exec_runner in pauldowman-ec2onrails-0.9.10.1

- old
+ new

@@ -21,11 +21,11 @@ # This script allows you to ONLY execute within a shell IF the role of # the server (as defined by capistrano) matches the role specified. # ex. # * exec_runner -role :db -exec 'echo "hello world"' # # will only run if the server is in the db role -# * exec_runner -role :app -exec /some/app/specific/script/to/call +# * exec_runner -role :web -exec /some/app/specific/script/to/call # require "rubygems" require "optiflag" @@ -53,10 +53,10 @@ end and_process! end -#strip out the ':', in case the user enters ':db', or ':app' +#strip out the ':', in case the user enters ':db', or ':web' if ARGV.flags.role && !in_role?(ARGV.flags.role.sub(/^:/, '').to_sym) puts "This script is not being run because the server is not running under the #{role} role" if ARGV.flags.v exit end