cfn_manage 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7aeef944e140719abc696e29afb06aa3ea2677ab6504e688e987040c56a95771
4
- data.tar.gz: 1fcc7ec53f48c15336699b01f5acc239089c1f2479571413c0bab30abd0559e9
3
+ metadata.gz: 23fee5c736e870116aaec46060e2b66a845d775f71856c09451b146e66b24ade
4
+ data.tar.gz: c2962bfafb2619bdb6c8fbbae61a4e099267c49cfe894af085bc61e4ff8af2c9
5
5
  SHA512:
6
- metadata.gz: '085fbba038d07fcc2eb4287dd5ed851bf22aafc8a34a682e6e0ea53ad7a9b6d67ac209bf59a3126e1b2df85831fc25d8eea20ca9316eb8406bf35b8f8e4431af'
7
- data.tar.gz: 925b3a97c776fabbc455069b68537c594e99bccd48025f4fddaa09920118114eb92acdfca64159abe4616c199d809718010131f7ebd16ce829554e14a7337aea
6
+ metadata.gz: 493d6080ae636c463826ca7f5823b59c567c279ebf69311a7030557dd85b8dc3f71394d77fab1d19c0fa63e457f99d96750d9524fb6409a367af85a2d37c35ca
7
+ data.tar.gz: d8ffdf6c7944346ba268be1d00ec59183d136268a1e3d40e8656acd7205ad350db28caf8cc99708c29a6454a2660b46aa80524f43c7d3955a81509165ccf8540
data/bin/cfn_manage CHANGED
@@ -113,44 +113,44 @@ case command
113
113
  print_usage_exit(0)
114
114
  # asg commands
115
115
  when 'stop-asg'
116
- CfnManage::CloudFormation::EnvironmentRunStop.new().start_resource($options['ASG'],'AWS::AutoScaling::AutoScalingGroup')
116
+ CfnManage::CloudFormation::EnvironmentRunStop.new().stop_resource($options['ASG'],'AWS::AutoScaling::AutoScalingGroup')
117
117
  when 'start-asg'
118
118
  CfnManage::CloudFormation::EnvironmentRunStop.new().start_resource($options['ASG'],'AWS::AutoScaling::AutoScalingGroup')
119
119
 
120
120
  # rds commands
121
121
  when 'stop-rds'
122
- CfnManage::CloudFormation::EnvironmentRunStop.new().start_resource($options['RDS_INSTANCE_ID'],'AWS::RDS::DBInstance')
122
+ CfnManage::CloudFormation::EnvironmentRunStop.new().stop_resource($options['RDS_INSTANCE_ID'],'AWS::RDS::DBInstance')
123
123
  when 'start-rds'
124
124
  CfnManage::CloudFormation::EnvironmentRunStop.new().start_resource($options['RDS_INSTANCE_ID'],'AWS::RDS::DBInstance')
125
125
 
126
126
  # aurora cluster commands
127
127
  when 'stop-aurora-cluster'
128
- CfnManage::CloudFormation::EnvironmentRunStop.new().start_resource($options['AURORA_CLUSTER_ID'],'AWS::RDS::DBCluster')
128
+ CfnManage::CloudFormation::EnvironmentRunStop.new().stop_resource($options['AURORA_CLUSTER_ID'],'AWS::RDS::DBCluster')
129
129
  when 'start-aurora-cluster'
130
130
  CfnManage::CloudFormation::EnvironmentRunStop.new().start_resource($options['AURORA_CLUSTER_ID'],'AWS::RDS::DBCluster')
131
131
 
132
132
  # ec2 instance
133
133
  when 'stop-ec2'
134
- CfnManage::CloudFormation::EnvironmentRunStop.new().start_resource($options['EC2_INSTANCE_ID'],'AWS::EC2::Instance')
134
+ CfnManage::CloudFormation::EnvironmentRunStop.new().stop_resource($options['EC2_INSTANCE_ID'],'AWS::EC2::Instance')
135
135
  when 'start-ec2'
136
136
  CfnManage::CloudFormation::EnvironmentRunStop.new().start_resource($options['EC2_INSTANCE_ID'],'AWS::EC2::Instance')
137
137
 
138
138
  # spot fleet
139
139
  when 'stop-spot-fleet'
140
- CfnManage::CloudFormation::EnvironmentRunStop.new().start_resource($options['SPOT_FLEET'],'AWS::EC2::SpotFleet')
140
+ CfnManage::CloudFormation::EnvironmentRunStop.new().stop_resource($options['SPOT_FLEET'],'AWS::EC2::SpotFleet')
141
141
  when 'start-spot-fleet'
142
142
  CfnManage::CloudFormation::EnvironmentRunStop.new().start_resource($options['SPOT_FLEET'],'AWS::EC2::SpotFleet')
143
143
 
144
144
  # spot fleet
145
145
  when 'stop-ecs-cluster'
146
- CfnManage::CloudFormation::EnvironmentRunStop.new().start_resource($options['ECS_CLUSTER'],'AWS::ECS::Cluster')
146
+ CfnManage::CloudFormation::EnvironmentRunStop.new().stop_resource($options['ECS_CLUSTER'],'AWS::ECS::Cluster')
147
147
  when 'start-ecs-cluster'
148
148
  CfnManage::CloudFormation::EnvironmentRunStop.new().start_resource($options['ECS_CLUSTER'],'AWS::ECS::Cluster')
149
149
 
150
150
 
151
151
  # cloudwatch alarm
152
152
  when 'disable-alarm'
153
- CfnManage::CloudFormation::EnvironmentRunStop.new().start_resource($options['ALARM'],'AWS::CloudWatch::Alarm')
153
+ CfnManage::CloudFormation::EnvironmentRunStop.new().stop_resource($options['ALARM'],'AWS::CloudWatch::Alarm')
154
154
  when 'enable-alarm'
155
155
  CfnManage::CloudFormation::EnvironmentRunStop.new().start_resource($options['ALARM'],'AWS::CloudWatch::Alarm')
156
156
 
@@ -81,7 +81,7 @@ module CfnManage
81
81
  )
82
82
  @environment_resources << {
83
83
  id: resource_id,
84
- priority: @@resource_start_priorities[resource['resource_type']],
84
+ priority: @@resource_start_priorities[resource_type],
85
85
  handler: start_stop_handler,
86
86
  type: resource_type
87
87
  }
@@ -96,7 +96,7 @@ module CfnManage
96
96
  )
97
97
  @environment_resources << {
98
98
  id: resource_id,
99
- priority: @@resource_start_priorities[resource['resource_type']],
99
+ priority: @@resource_start_priorities[resource_type],
100
100
  handler: start_stop_handler,
101
101
  type: resource_type
102
102
  }
@@ -1,3 +1,3 @@
1
1
  module CfnManage
2
- VERSION="0.5.1".freeze
2
+ VERSION="0.5.2".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfn_manage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Base2Services
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2018-11-09 00:00:00.000000000 Z
13
+ date: 2018-11-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: aws-sdk-core