Module: StackMaster::Command

Defined Under Namespace

Modules: ClassMethods, Perform

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
# File 'lib/stack_master/command.rb', line 3

def self.included(base)
  base.extend ClassMethods
  base.prepend Perform
end

Instance Method Details

#initialize(config, stack_definition = nil, options = Commander::Command::Options.new) ⇒ Object



30
31
32
33
34
# File 'lib/stack_master/command.rb', line 30

def initialize(config, stack_definition = nil, options = Commander::Command::Options.new)
  @config = config
  @stack_definition = stack_definition
  @options = options
end

#success?Boolean

Returns:

  • (Boolean)


36
37
38
# File 'lib/stack_master/command.rb', line 36

def success?
  @failed != true
end