Class: LaunchPad::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/launch-pad/command.rb

Direct Known Subclasses

Haproxy, Host

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(incoming) ⇒ Command

Returns a new instance of Command.



6
7
8
# File 'lib/launch-pad/command.rb', line 6

def initialize(incoming)
  self.options = incoming
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



4
5
6
# File 'lib/launch-pad/command.rb', line 4

def options
  @options
end

Instance Method Details

#activateObject



10
11
12
# File 'lib/launch-pad/command.rb', line 10

def activate
  puts "Executing: #{self.class}"
end

#invalidates_config?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/launch-pad/command.rb', line 18

def invalidates_config?
  false
end

#sets_activity?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/launch-pad/command.rb', line 14

def sets_activity?
  false
end