Created
September 27, 2012 09:46
-
-
Save ono/3793177 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| % ack ":app" bin/capify | |
| 49: "config/deploy.rb" => 'set :application, "set your application name here" | |
| 56:role :app, "your app-server here" # This may be the same as your `Web` server | |
| 70:# task :restart, :roles => :app, :except => { :no_release => true } do | |
| lib/capistrano/configuration/actions/inspect.rb | |
| 19: # task :tail_fcgi, :roles => :app do | |
| lib/capistrano/configuration/actions/invocation.rb | |
| 39: # session.when "in?(:app)", "/path/to/restart/mongrel" | |
| 48: # session.when "in?(:app)", "/path/to/restart/mongrel" do |ch, stream, data| | |
| 73: # session.when "in?(:web) || in?(:app)", "/more/commands" | |
| lib/capistrano/configuration/roles.rb | |
| 31: # role :app, "app1.example.com", "app2.example.com" | |
| 53: # role(:app) won't actually instantiate a Role object for :app.) | |
| 65: # server "master.example.com", :web, :app | |
| lib/capistrano/configuration/servers.rb | |
| 39: # servers = find_servers :roles => :app, | |
| lib/capistrano/recipes/deploy/strategy/copy.rb | |
| 86: File.expand_path(configuration[:application], Dir.tmpdir) : | |
| lib/capistrano/recipes/deploy.rb | |
| 17:_cset(:application) { abort "Please specify the name of your application, set :application, 'foo'" } | |
| 321: task :restart, :roles => :app, :except => { :no_release => true } do | |
| 493: task :start, :roles => :app do | |
| 501: task :stop, :roles => :app do | |
| test/configuration/alias_task_test.rb | |
| 83: @config.task(:foo, :role => :app) { 42 } | |
| 97: @config.task(:foo, :role => :app) { 42 } | |
| test/configuration/namespace_dsl_test.rb | |
| 125: role :app, "hello" | |
| test/configuration/roles_test.rb | |
| 26: @config.role :app, "app1.capistrano.test" | |
| 28: app_server = @config.roles[:app].servers.first | |
| 29: assert @config.role_names_for_host(app_server)==[ :app ] | |
| 39: @config.role :app | |
| 40: assert @config.roles.keys.include?(:app) | |
| 41: assert @config.roles[:app].empty? | |
| 45: @config.role :app, "app1.capistrano.test" | |
| 46: assert_equal [:app], @config.roles.keys | |
| 51: @config.role :app do | |
| 58: @config.role :app, "app1.capistrano.test", "app2.capistrano.test" | |
| 59: assert_equal [:app], @config.roles.keys | |
| 64: @config.role :app, 'app1.capistrano.test' do | |
| 71: @config.role :app do | |
| 78: @config.role :app, "app1.capistrano.test", "app2.capistrano.test", :extra => :value | |
| 79: @config.roles[:app].each do |server| | |
| 85: @config.role :app, :extra => :value do | |
| 88: @config.roles[:app].each do |server| | |
| 94: @config.role :app, 'app1.capistrano.test', 'app2.capistrano.test' do | |
| 97: @config.role :app, 'app5.capistrano.test', 'app6.capistrano.test', :extra => :value do | |
| 100: @config.role :app, 'app9.capistrano.test' | |
| 103: @config.roles[:app].each do |server| | |
| 114: @config.role :app, :first => :one, :second => :two do | |
| 117: @config.roles[:app].each do |server| | |
| 123: @config.role :app, :value => :wrong do | |
| 126: @config.roles[:app].servers | |
| 127: @config.roles[:app].servers.each do |server| | |
| 133: @config.role :app do | |
| 140: @config.role :app do | |
| 147: @config.server "www.capistrano.test", :web, :app | |
| 148: assert_equal %w(www.capistrano.test), @config.roles[:app].map { |s| s.host } | |
| 155: assert_equal list, @config.roles[:app].map { |s| s.host } | |
| test/configuration/servers_test.rb | |
| 20: role(@config, :app, "app1", :primary => true) | |
| 21: role(@config, :app, "app2", "app3") | |
| 70: task = new_task(:testing,@config, :roles => :app) | |
| 79: task = new_task(:testing,@config, :roles => [ :app,:file ]) | |
| 88: task = new_task(:testing,@config, :roles => [ :app ]) | |
| 143: task = new_task(:testing, @config, :roles => :app, :only => { :primary => true }) | |
| 154: assert_equal %w(app1 app2 app3).sort, @config.find_servers_for_task(task, :roles => :app).map { |s| s.host }.sort | |
| 163: assert_equal %w(app1 app2 app3), @config.find_servers(:roles => lambda { :app }).map { |s| s.host }.sort | |
| test/deploy/strategy/copy_test.rb | |
| 8: @config = { :application => "captest", | |
| test/fixtures/config.rb | |
| 1:set :application, "foo" | |
| test/recipes_test.rb | |
| 15: set :application, "foo" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment