Module: CfnManage
- Defined in:
- lib/cfn_manage.rb,
lib/cfn_manage/globals.rb,
lib/cfn_manage/version.rb,
lib/cfn_manage/cf_common.rb,
lib/cfn_manage/tag_finder.rb,
lib/cfn_manage/handlers/asg.rb,
lib/cfn_manage/handlers/ec2.rb,
lib/cfn_manage/handlers/rds.rb,
lib/cfn_manage/handlers/alarm.rb,
lib/cfn_manage/aws_credentials.rb,
lib/cfn_manage/handlers/transfer.rb,
lib/cfn_manage/cf_progress_tracker.rb,
lib/cfn_manage/handlers/documentdb.rb,
lib/cfn_manage/handlers/spot_fleet.rb,
lib/cfn_manage/handlers/ecs_cluster.rb,
lib/cfn_manage/handlers/aurora_cluster.rb,
lib/cfn_manage/cf_start_stop_environment.rb,
lib/cfn_manage/start_stop_handler_factory.rb
Defined Under Namespace
Modules: CloudFormation, StartStopHandler Classes: AWSCredentials, StartStopHandlerFactory, TagFinder
Constant Summary collapse
- VERSION =
"0.8.3".freeze
Class Attribute Summary collapse
-
.asg_wait_state ⇒ Object
return the vale of our options.
-
.ecs_wait_state ⇒ Object
return the vale of our options.
Class Method Summary collapse
-
.asg_suspend_termination ⇒ Object
disable termination on asg when stopping EC2 instances in an asg.
- .asg_suspend_termination? ⇒ Boolean
-
.continue_on_error ⇒ Object
continue if a resource fails to stop or start.
- .continue_on_error? ⇒ Boolean
-
.dry_run ⇒ Object
don’t stop or start resources.
- .dry_run? ⇒ Boolean
-
.ecs_wait_container_instances ⇒ Object
Wait for a container instances to join a ecs cluster.
- .ecs_wait_container_instances? ⇒ Boolean
-
.find_tags ⇒ Object
find options set on resource tags.
- .find_tags? ⇒ Boolean
-
.ignore_missing_ecs_config ⇒ Object
dirty hack.
- .ignore_missing_ecs_config? ⇒ Boolean
-
.skip_wait ⇒ Object
dont wait for resources to become healthy.
- .skip_wait? ⇒ Boolean
-
.true?(obj) ⇒ Boolean
converts string based bolleans from aws tag values to bolleans.
-
.wait_async ⇒ Object
wait for resources based upon priority groups.
- .wait_async? ⇒ Boolean
Class Attribute Details
.asg_wait_state ⇒ Object
return the vale of our options
10 11 12 |
# File 'lib/cfn_manage/globals.rb', line 10 def asg_wait_state @asg_wait_state end |
.ecs_wait_state ⇒ Object
return the vale of our options
10 11 12 |
# File 'lib/cfn_manage/globals.rb', line 10 def ecs_wait_state @ecs_wait_state end |
Class Method Details
.asg_suspend_termination ⇒ Object
disable termination on asg when stopping EC2 instances in an asg
63 64 65 |
# File 'lib/cfn_manage/globals.rb', line 63 def asg_suspend_termination @asg_suspend_termination = true end |
.asg_suspend_termination? ⇒ Boolean
67 68 69 |
# File 'lib/cfn_manage/globals.rb', line 67 def asg_suspend_termination? @asg_suspend_termination end |
.continue_on_error ⇒ Object
continue if a resource fails to stop or start
72 73 74 |
# File 'lib/cfn_manage/globals.rb', line 72 def continue_on_error @continue_on_error = true end |
.continue_on_error? ⇒ Boolean
76 77 78 |
# File 'lib/cfn_manage/globals.rb', line 76 def continue_on_error? @continue_on_error end |
.dry_run ⇒ Object
don’t stop or start resources
27 28 29 |
# File 'lib/cfn_manage/globals.rb', line 27 def dry_run @dry_run = true end |
.dry_run? ⇒ Boolean
31 32 33 |
# File 'lib/cfn_manage/globals.rb', line 31 def dry_run? @dry_run end |
.ecs_wait_container_instances ⇒ Object
Wait for a container instances to join a ecs cluster
81 82 83 |
# File 'lib/cfn_manage/globals.rb', line 81 def ecs_wait_container_instances @ecs_wait_container_instances = true end |
.ecs_wait_container_instances? ⇒ Boolean
85 86 87 |
# File 'lib/cfn_manage/globals.rb', line 85 def ecs_wait_container_instances? @ecs_wait_container_instances end |
.find_tags ⇒ Object
find options set on resource tags
18 19 20 |
# File 'lib/cfn_manage/globals.rb', line 18 def @find_tags = true end |
.find_tags? ⇒ Boolean
22 23 24 |
# File 'lib/cfn_manage/globals.rb', line 22 def @find_tags end |
.ignore_missing_ecs_config ⇒ Object
dirty hack
54 55 56 |
# File 'lib/cfn_manage/globals.rb', line 54 def ignore_missing_ecs_config @ignore_missing_ecs_config = true end |
.ignore_missing_ecs_config? ⇒ Boolean
58 59 60 |
# File 'lib/cfn_manage/globals.rb', line 58 def ignore_missing_ecs_config? @ignore_missing_ecs_config end |
.skip_wait ⇒ Object
dont wait for resources to become healthy
36 37 38 |
# File 'lib/cfn_manage/globals.rb', line 36 def skip_wait @skip_wait = true end |
.skip_wait? ⇒ Boolean
40 41 42 |
# File 'lib/cfn_manage/globals.rb', line 40 def skip_wait? @skip_wait end |
.true?(obj) ⇒ Boolean
converts string based bolleans from aws tag values to bolleans
13 14 15 |
# File 'lib/cfn_manage/globals.rb', line 13 def true?(obj) ["true","1"].include? obj.to_s.downcase end |
.wait_async ⇒ Object
wait for resources based upon priority groups
45 46 47 |
# File 'lib/cfn_manage/globals.rb', line 45 def wait_async @wait_async = true end |
.wait_async? ⇒ Boolean
49 50 51 |
# File 'lib/cfn_manage/globals.rb', line 49 def wait_async? @wait_async end |