global.rb

Path: lib/capistrano/global.rb
Last Update: Fri Jan 08 20:00:45 +0000 2010

Methods

Public Instance methods

[Source]

    # File lib/capistrano/global.rb, line 54
54:   def for_each_database(tasks)
55:     available_databases.each do |site_code|
56:       site_run(tasks, site_code)
57:     end
58:   end

Helper functions

[Source]

    # File lib/capistrano/global.rb, line 48
48:   def for_each_site(tasks)
49:     available_sites.each do |site_code|
50:       site_run(tasks, site_code)
51:     end
52:   end

[Source]

    # File lib/capistrano/global.rb, line 61
61:   def site_run(tasks, site_code)
62:     tasks.each do |task|
63:       system "cap #{task} -S stage=#{stage} -S language=#{site_code}"
64:     end
65:   end

[Validate]