Class: Capistrano::Deploy::LocalDependency

Inherits:
Object
  • Object
show all
Defined in:
lib/alpha_omega/deploy/local_dependency.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#configurationObject (readonly)

Returns the value of attribute configuration.



4
5
6
# File 'lib/alpha_omega/deploy/local_dependency.rb', line 4

def configuration
  @configuration
end

#messageObject (readonly)

Returns the value of attribute message.



5
6
7
# File 'lib/alpha_omega/deploy/local_dependency.rb', line 5

def message
  @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)
  @message = message
  self
end

#pass?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/alpha_omega/deploy/local_dependency.rb', line 23

def pass?
  @success
end