Class: Capistrano::Deploy::LocalDependency
- Inherits:
-
Object
- Object
- Capistrano::Deploy::LocalDependency
- Defined in:
- lib/alpha_omega/deploy/local_dependency.rb
Instance Attribute Summary collapse
-
#configuration ⇒ Object
readonly
Returns the value of attribute configuration.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
- #command(command) ⇒ Object
-
#initialize(configuration) ⇒ LocalDependency
constructor
A new instance of LocalDependency.
- #or(message) ⇒ Object
- #pass? ⇒ Boolean
Constructor Details
#initialize(configuration) ⇒ LocalDependency
Returns a new instance of LocalDependency.
7 8 9 10 |
# File 'lib/alpha_omega/deploy/local_dependency.rb', line 7 def initialize(configuration) @configuration = configuration @success = true end |
Instance Attribute Details
#configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
4 5 6 |
# File 'lib/alpha_omega/deploy/local_dependency.rb', line 4 def configuration @configuration end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
5 6 7 |
# File 'lib/alpha_omega/deploy/local_dependency.rb', line 5 def @message end |
Instance Method Details
#command(command) ⇒ Object
12 13 14 15 16 |
# File 'lib/alpha_omega/deploy/local_dependency.rb', line 12 def command(command) @message ||= "`#{command}' could not be found in the path on the local host" @success = find_in_path(command) self end |
#or(message) ⇒ Object
18 19 20 21 |
# File 'lib/alpha_omega/deploy/local_dependency.rb', line 18 def or() @message = self end |
#pass? ⇒ Boolean
23 24 25 |
# File 'lib/alpha_omega/deploy/local_dependency.rb', line 23 def pass? @success end |