Module: StackMaster
- Extended by:
- StackMaster
- Included in:
- StackMaster
- Defined in:
- lib/stack_master.rb,
lib/stack_master/cli.rb,
lib/stack_master/stack.rb,
lib/stack_master/utils.rb,
lib/stack_master/config.rb,
lib/stack_master/ctrl_c.rb,
lib/stack_master/command.rb,
lib/stack_master/version.rb,
lib/stack_master/identity.rb,
lib/stack_master/prompter.rb,
lib/stack_master/validator.rb,
lib/stack_master/change_set.rb,
lib/stack_master/role_assumer.rb,
lib/stack_master/stack_differ.rb,
lib/stack_master/stack_states.rb,
lib/stack_master/stack_status.rb,
lib/stack_master/aws_driver/s3.rb,
lib/stack_master/commands/diff.rb,
lib/stack_master/commands/init.rb,
lib/stack_master/commands/lint.rb,
lib/stack_master/commands/apply.rb,
lib/stack_master/resolver_array.rb,
lib/stack_master/template_utils.rb,
lib/stack_master/test_driver/s3.rb,
lib/stack_master/commands/delete.rb,
lib/stack_master/commands/events.rb,
lib/stack_master/commands/status.rb,
lib/stack_master/commands/compile.rb,
lib/stack_master/commands/outputs.rb,
lib/stack_master/parameter_loader.rb,
lib/stack_master/sns_topic_finder.rb,
lib/stack_master/stack_definition.rb,
lib/stack_master/commands/validate.rb,
lib/stack_master/template_compiler.rb,
lib/stack_master/commands/resources.rb,
lib/stack_master/parameter_resolver.rb,
lib/stack_master/commands/list_stacks.rb,
lib/stack_master/stack_events/fetcher.rb,
lib/stack_master/security_group_finder.rb,
lib/stack_master/stack_events/streamer.rb,
lib/stack_master/stack_events/presenter.rb,
lib/stack_master/parameter_resolvers/env.rb,
lib/stack_master/commands/terminal_helper.rb,
lib/stack_master/parameter_resolvers/ejson.rb,
lib/stack_master/aws_driver/cloud_formation.rb,
lib/stack_master/paged_response_accumulator.rb,
lib/stack_master/test_driver/cloud_formation.rb,
lib/stack_master/parameter_resolvers/ami_finder.rb,
lib/stack_master/parameter_resolvers/latest_ami.rb,
lib/stack_master/sparkle_formation/template_file.rb,
lib/stack_master/parameter_resolvers/one_password.rb,
lib/stack_master/parameter_resolvers/stack_output.rb,
lib/stack_master/parameter_resolvers/security_group.rb,
lib/stack_master/parameter_resolvers/sns_topic_name.rb,
lib/stack_master/parameter_resolvers/acm_certificate.rb,
lib/stack_master/parameter_resolvers/parameter_store.rb,
lib/stack_master/parameter_resolvers/latest_container.rb,
lib/stack_master/parameter_resolvers/latest_ami_by_tags.rb,
lib/stack_master/sparkle_formation/compile_time/state_builder.rb,
lib/stack_master/sparkle_formation/compile_time/value_builder.rb,
lib/stack_master/sparkle_formation/compile_time/empty_validator.rb,
lib/stack_master/sparkle_formation/compile_time/value_validator.rb,
lib/stack_master/sparkle_formation/compile_time/number_validator.rb,
lib/stack_master/sparkle_formation/compile_time/string_validator.rb,
lib/stack_master/sparkle_formation/compile_time/max_size_validator.rb,
lib/stack_master/sparkle_formation/compile_time/min_size_validator.rb,
lib/stack_master/sparkle_formation/compile_time/max_length_validator.rb,
lib/stack_master/sparkle_formation/compile_time/min_length_validator.rb,
lib/stack_master/sparkle_formation/compile_time/parameters_validator.rb,
lib/stack_master/sparkle_formation/compile_time/definitions_validator.rb,
lib/stack_master/sparkle_formation/compile_time/value_validator_factory.rb,
lib/stack_master/sparkle_formation/compile_time/allowed_values_validator.rb,
lib/stack_master/sparkle_formation/compile_time/allowed_pattern_validator.rb
Defined Under Namespace
Modules: AwsDriver, Command, Commands, ParameterResolvers, Prompter, SparkleFormation, StackEvents, StackStates, TemplateCompilers, TemplateUtils, TestDriver, Utils
Classes: CLI, ChangeSet, Config, CtrlC, Identity, PagedResponseAccumulator, ParameterLoader, ParameterResolver, RoleAssumer, SecurityGroupFinder, SnsTopicFinder, Stack, StackDefinition, StackDiffer, StackStatus, TemplateCompiler, Validator
Constant Summary
collapse
- NON_INTERACTIVE_DEFAULT =
false
- DEBUG_DEFAULT =
false
- QUIET_DEFAULT =
false
- SKIP_ACCOUNT_CHECK_DEFAULT =
false
- VERSION =
"2.0.0"
Instance Attribute Summary collapse
Instance Method Summary
collapse
Instance Attribute Details
#non_interactive_answer ⇒ Object
Returns the value of attribute non_interactive_answer.
154
155
156
|
# File 'lib/stack_master.rb', line 154
def non_interactive_answer
@non_interactive_answer
end
|
Instance Method Details
#base_dir ⇒ Object
157
158
159
|
# File 'lib/stack_master.rb', line 157
def base_dir
File.expand_path(File.join(File.dirname(__FILE__), ".."))
end
|
161
162
163
|
# File 'lib/stack_master.rb', line 161
def cloud_formation_driver
@cloud_formation_driver ||= AwsDriver::CloudFormation.new
end
|
165
166
167
|
# File 'lib/stack_master.rb', line 165
def cloud_formation_driver=(value)
@cloud_formation_driver = value
end
|
#debug(message) ⇒ Object
126
127
128
129
|
# File 'lib/stack_master.rb', line 126
def debug(message)
return unless debug?
stderr.puts "[DEBUG] #{message}".colorize(:green)
end
|
#debug! ⇒ Object
117
118
119
|
# File 'lib/stack_master.rb', line 117
def debug!
@debug = true
end
|
#debug? ⇒ Boolean
122
123
124
|
# File 'lib/stack_master.rb', line 122
def debug?
@debug
end
|
#interactive? ⇒ Boolean
104
105
106
|
# File 'lib/stack_master.rb', line 104
def interactive?
!non_interactive?
end
|
#non_interactive! ⇒ Object
113
114
115
|
# File 'lib/stack_master.rb', line 113
def non_interactive!
@non_interactive = true
end
|
#non_interactive? ⇒ Boolean
108
109
110
|
# File 'lib/stack_master.rb', line 108
def non_interactive?
@non_interactive
end
|
#quiet! ⇒ Object
131
132
133
|
# File 'lib/stack_master.rb', line 131
def quiet!
@quiet = true
end
|
#quiet? ⇒ Boolean
136
137
138
|
# File 'lib/stack_master.rb', line 136
def quiet?
@quiet
end
|
#s3_driver ⇒ Object
169
170
171
|
# File 'lib/stack_master.rb', line 169
def s3_driver
@s3_driver ||= AwsDriver::S3.new
end
|
#s3_driver=(value) ⇒ Object
173
174
175
|
# File 'lib/stack_master.rb', line 173
def s3_driver=(value)
@s3_driver = value
end
|
#skip_account_check! ⇒ Object
145
146
147
|
# File 'lib/stack_master.rb', line 145
def skip_account_check!
@skip_account_check = true
end
|
#skip_account_check? ⇒ Boolean
150
151
152
|
# File 'lib/stack_master.rb', line 150
def skip_account_check?
@skip_account_check
end
|
#stderr ⇒ Object
189
190
191
|
# File 'lib/stack_master.rb', line 189
def stderr
@stderr || $stderr
end
|
#stderr=(io) ⇒ Object
193
194
195
|
# File 'lib/stack_master.rb', line 193
def stderr=(io)
@stderr = io
end
|
#stdin ⇒ Object
185
186
187
|
# File 'lib/stack_master.rb', line 185
def stdin
$stdin
end
|
#stdout ⇒ Object
177
178
179
|
# File 'lib/stack_master.rb', line 177
def stdout
@stdout || $stdout
end
|
#stdout=(io) ⇒ Object
181
182
183
|
# File 'lib/stack_master.rb', line 181
def stdout=(io)
@stdout = io
end
|