Notes:
no global verbose flag for scm_verbose sync, checkout and export are just sync in p4
EXTENSIONS | = | {} | Holds the set of registered plugins, keyed by name (where the name is a symbol). | |
EXTENSIONS | = | {} | Holds the set of registered plugins, keyed by name (where the name is a symbol). |
Register the given module as a plugin with the given name. It will henceforth be available via a proxy object on Configuration instances, accessible by a method with the given name.
# File lib/capistrano/extensions.rb, line 20 20: def self.plugin(name, mod) 21: name = name.to_sym 22: return false if EXTENSIONS.has_key?(name) 23: 24: methods = Capistrano::Configuration.public_instance_methods + 25: Capistrano::Configuration.protected_instance_methods + 26: Capistrano::Configuration.private_instance_methods 27: 28: if methods.any? { |m| m.to_sym == name } 29: raise Capistrano::Error, "registering a plugin named `#{name}' would shadow a method on Capistrano::Configuration with the same name" 30: end 31: 32: Capistrano::Configuration.class_eval "def \#{name}\n@__\#{name}_proxy ||= Capistrano::ExtensionProxy.new(self, Capistrano::EXTENSIONS[\#{name.inspect}])\nend\n", __FILE__, __LINE__+1 33: 34: EXTENSIONS[name] = mod 35: return true 36: end
Register the given module as a plugin with the given name. It will henceforth be available via a proxy object on Configuration instances, accessible by a method with the given name.
# File lib/capistrano/extensions.rb, line 20 20: def self.plugin(name, mod) 21: name = name.to_sym 22: return false if EXTENSIONS.has_key?(name) 23: 24: methods = Capistrano::Configuration.public_instance_methods + 25: Capistrano::Configuration.protected_instance_methods + 26: Capistrano::Configuration.private_instance_methods 27: 28: if methods.any? { |m| m.to_sym == name } 29: raise Capistrano::Error, "registering a plugin named `#{name}' would shadow a method on Capistrano::Configuration with the same name" 30: end 31: 32: Capistrano::Configuration.class_eval "def \#{name}\n@__\#{name}_proxy ||= Capistrano::ExtensionProxy.new(self, Capistrano::EXTENSIONS[\#{name.inspect}])\nend\n", __FILE__, __LINE__+1 33: 34: EXTENSIONS[name] = mod 35: return true 36: end
All open sessions, needed to satisfy the Command::Processable include
# File lib/capistrano/shell.rb, line 259 259: def sessions 260: configuration.sessions.values 261: end
All open sessions, needed to satisfy the Command::Processable include
# File lib/capistrano/shell.rb, line 259 259: def sessions 260: configuration.sessions.values 261: end