Class: Moonshot::ControllerConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/moonshot/controller_config.rb

Overview

Holds configuration for Moonshot::Controller

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeControllerConfig

Returns a new instance of ControllerConfig.



24
25
26
27
28
29
30
31
32
# File 'lib/moonshot/controller_config.rb', line 24

def initialize
  @auto_prefix_stack = true
  @interactive_logger = InteractiveLogger.new
  @logger = Logger.new(STDOUT)
  @parent_stacks = []
  @plugins = []
  @show_all_stack_events = false
  @parameter_strategy = Moonshot::ParameterStrategy::DefaultStrategy.new
end

Instance Attribute Details

#app_nameObject

Returns the value of attribute app_name.



6
7
8
# File 'lib/moonshot/controller_config.rb', line 6

def app_name
  @app_name
end

#artifact_repositoryObject

Returns the value of attribute artifact_repository.



7
8
9
# File 'lib/moonshot/controller_config.rb', line 7

def artifact_repository
  @artifact_repository
end

#auto_prefix_stackObject

Returns the value of attribute auto_prefix_stack.



8
9
10
# File 'lib/moonshot/controller_config.rb', line 8

def auto_prefix_stack
  @auto_prefix_stack
end

#build_mechanismObject

Returns the value of attribute build_mechanism.



9
10
11
# File 'lib/moonshot/controller_config.rb', line 9

def build_mechanism
  @build_mechanism
end

#deployment_mechanismObject

Returns the value of attribute deployment_mechanism.



10
11
12
# File 'lib/moonshot/controller_config.rb', line 10

def deployment_mechanism
  @deployment_mechanism
end

#environment_nameObject

Returns the value of attribute environment_name.



11
12
13
# File 'lib/moonshot/controller_config.rb', line 11

def environment_name
  @environment_name
end

#interactive_loggerObject

Returns the value of attribute interactive_logger.



12
13
14
# File 'lib/moonshot/controller_config.rb', line 12

def interactive_logger
  @interactive_logger
end

#loggerObject

Returns the value of attribute logger.



13
14
15
# File 'lib/moonshot/controller_config.rb', line 13

def logger
  @logger
end

#parameter_strategyObject

Returns the value of attribute parameter_strategy.



17
18
19
# File 'lib/moonshot/controller_config.rb', line 17

def parameter_strategy
  @parameter_strategy
end

#parent_stacksObject

Returns the value of attribute parent_stacks.



14
15
16
# File 'lib/moonshot/controller_config.rb', line 14

def parent_stacks
  @parent_stacks
end

#pluginsObject

Returns the value of attribute plugins.



15
16
17
# File 'lib/moonshot/controller_config.rb', line 15

def plugins
  @plugins
end

#show_all_stack_eventsObject

Returns the value of attribute show_all_stack_events.



16
17
18
# File 'lib/moonshot/controller_config.rb', line 16

def show_all_stack_events
  @show_all_stack_events
end

#ssh_auto_scaling_group_nameObject

Returns the value of attribute ssh_auto_scaling_group_name.



22
23
24
# File 'lib/moonshot/controller_config.rb', line 22

def ssh_auto_scaling_group_name
  @ssh_auto_scaling_group_name
end

#ssh_commandObject

Returns the value of attribute ssh_command.



21
22
23
# File 'lib/moonshot/controller_config.rb', line 21

def ssh_command
  @ssh_command
end

#ssh_identity_fileObject

Returns the value of attribute ssh_identity_file.



19
20
21
# File 'lib/moonshot/controller_config.rb', line 19

def ssh_identity_file
  @ssh_identity_file
end

#ssh_instanceObject

Returns the value of attribute ssh_instance.



18
19
20
# File 'lib/moonshot/controller_config.rb', line 18

def ssh_instance
  @ssh_instance
end

#ssh_userObject

Returns the value of attribute ssh_user.



20
21
22
# File 'lib/moonshot/controller_config.rb', line 20

def ssh_user
  @ssh_user
end