awful 0.0.119 → 0.0.120

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
  SHA1:
3
- metadata.gz: d2e51f520599215586292fa557869b2348ec4f8e
4
- data.tar.gz: 1e3f0b87e99fb43458f033626e7af2f37f4a37c1
3
+ metadata.gz: 8111825f086974f7ece218790ecc38b89d02cb80
4
+ data.tar.gz: b10cf42a491819e0fb64050078143bae344ea9bb
5
5
  SHA512:
6
- metadata.gz: 96c620f51dfa7cb7043a6033411bca9a81da3a67a2df8147f1e227cb81659dfb3dded1375c1d303f50e3321a656a405756d3a376ce9933b095129096810f3507
7
- data.tar.gz: f917c55453929743f9f8c7b3f9775e3bfa6214d621ff8006f50e8b6d7dd8b8a8d9523ac0fb36b00e5dfb809a2c4a40436b84075cdb8fd5d4ee24edce355f5f5c
6
+ metadata.gz: 3ea9e3ed8a36d93e56d5eb13041a8f17190c24c176bf710f629bdc532d3515bb28f9ed7e7d6109d19ee3334b86762e86fd8fcd1b093ba496a96b624f3f357810
7
+ data.tar.gz: e42f0889a948a82f0ae1150e2fcca7f872ffe115022802a474ce05ce66c84004fea715e6bdb3d3c5497badafa5ac74df6b02e008155fda6af1539c924003d5c6
@@ -353,5 +353,20 @@ module Awful
353
353
  end
354
354
  end
355
355
  end
356
+
357
+ desc 'enter_standby ASG INSTANCES', 'put instance(s) in standby mode'
358
+ method_option :decrement, type: :boolean, default: true, desc: 'should decrement desired capacity'
359
+ def enter_standby(name, *instances)
360
+ autoscaling.enter_standby(
361
+ auto_scaling_group_name: name,
362
+ instance_ids: instances,
363
+ should_decrement_desired_capacity: options[:decrement]
364
+ )
365
+ end
366
+
367
+ desc 'exit_standby ASG INSTANCES', 'remove instance(s) from standby mode'
368
+ def exit_standby(name, *instances)
369
+ autoscaling.exit_standby(auto_scaling_group_name: name, instance_ids: instances)
370
+ end
356
371
  end
357
372
  end
data/lib/awful/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Awful
2
- VERSION = '0.0.119'
2
+ VERSION = '0.0.120'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awful
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.119
4
+ version: 0.0.120
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ric Lister
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-23 00:00:00.000000000 Z
11
+ date: 2016-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler