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 +4 -4
- data/lib/awful/auto_scaling.rb +15 -0
- data/lib/awful/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8111825f086974f7ece218790ecc38b89d02cb80
|
4
|
+
data.tar.gz: b10cf42a491819e0fb64050078143bae344ea9bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ea9e3ed8a36d93e56d5eb13041a8f17190c24c176bf710f629bdc532d3515bb28f9ed7e7d6109d19ee3334b86762e86fd8fcd1b093ba496a96b624f3f357810
|
7
|
+
data.tar.gz: e42f0889a948a82f0ae1150e2fcca7f872ffe115022802a474ce05ce66c84004fea715e6bdb3d3c5497badafa5ac74df6b02e008155fda6af1539c924003d5c6
|
data/lib/awful/auto_scaling.rb
CHANGED
@@ -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
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.
|
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-
|
11
|
+
date: 2016-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|