deployee 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +9 -9
- data/bin/deployee +15 -1
- data/deployee.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92c6abd27a63bebf74bec1752b031b9d56ea743a
|
4
|
+
data.tar.gz: 4cee16bdff0de6043576f0e80138b1dc924664d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb4bcf137f9669299eebe5f117cb6db143433e51ea3bbc9ebc9ba1ef4a602a3ef9ddabfcc87ec2174a35ec4100889087c5e4cd8b735ecb7f2814c9cf9862ef31
|
7
|
+
data.tar.gz: 3ca0ac9f0515ae98312c6766040bdb55bf0fa2ce46d24ec90dfa524b5f8479cdcbdbb925ddc37d18b4103567fcd13eaf19ebe9d6709f059db0b5fbdd673af144
|
data/README.md
CHANGED
@@ -17,23 +17,23 @@ This tool helps you to renew all instances of a scale group.
|
|
17
17
|
There are several ways to renew instances. We call these ways of strategies. Below is a list of the available strategies. Feel the urge to create your own strategy and send us a pull request.
|
18
18
|
|
19
19
|
|
20
|
-
* [At Least One](https://github.com/
|
21
|
-
* [Blackout](https://github.com/
|
22
|
-
* [Computing Preserve](https://github.com/
|
23
|
-
* [Double Capacity](https://github.com/
|
20
|
+
* [At Least One](https://github.com/umovme/deployee/wiki/At-Least-One)
|
21
|
+
* [Blackout](https://github.com/umovme/deployee/wiki/Blackout)
|
22
|
+
* [Computing Preserve](https://github.com/umovme/deployee/wiki/Computing-Preserve)
|
23
|
+
* [Double Capacity](https://github.com/umovme/deployee/wiki/Double-Capacity)
|
24
24
|
|
25
25
|
## Setup
|
26
|
-
Install
|
27
|
-
|
28
|
-
Run `bundle install` command to install dependencies listed on `Gemfile`
|
26
|
+
Install gem running command `gem install deployee`
|
29
27
|
|
30
28
|
[Configure AWS credentials](http://docs.aws.amazon.com/AWSSdkDocsRuby/latest/DeveloperGuide/ruby-dg-setup.html#set-up-creds)
|
31
29
|
|
32
30
|
## Running
|
33
|
-
Execute
|
31
|
+
Execute deployee command passing as argument the name of the auto scaling group and strategy.
|
34
32
|
|
35
33
|
For example:
|
36
|
-
`
|
34
|
+
`deployee -g my-group -s computing-strategy`
|
35
|
+
|
36
|
+
If you do not select a strategy, the default strategy is to [Computing Preserve](https://github.com/umovme/deployee/wiki/Computing-Preserve)
|
37
37
|
|
38
38
|
## Resources
|
39
39
|
[AWS Ruby SDK Documentation](http://docs.aws.amazon.com/AWSRubySDK/latest/_index.html)
|
data/bin/deployee
CHANGED
@@ -12,6 +12,9 @@ optparse = OptionParser.new do |opts|
|
|
12
12
|
opts.on('-g', '--group GROUP', 'Auto Scaling Group name') do |group|
|
13
13
|
options[:group] = group
|
14
14
|
end
|
15
|
+
opts.on('-s', '--strategy STRATEGY', 'Strategy for deployment') do |strategy|
|
16
|
+
options[:strategy] = strategy
|
17
|
+
end
|
15
18
|
|
16
19
|
opts.on('-h', '--help', 'Display this screen') do
|
17
20
|
puts opts
|
@@ -34,6 +37,17 @@ rescue OptionParser::InvalidOption, OptionParser::MissingArgument
|
|
34
37
|
exit
|
35
38
|
end
|
36
39
|
|
37
|
-
strategy =
|
40
|
+
strategy =
|
41
|
+
case options[:strategy]
|
42
|
+
when 'at-least-one'
|
43
|
+
AtLeastOneDeployment.new
|
44
|
+
when 'blackout'
|
45
|
+
BlackoutDeployment.new
|
46
|
+
when 'double-capacity'
|
47
|
+
DoubleCapacityDeployment.new
|
48
|
+
else
|
49
|
+
ComputingPreserveDeployment.new
|
50
|
+
end
|
51
|
+
|
38
52
|
deploy = DeployRunner.new strategy
|
39
53
|
deploy.run options[:group]
|
data/deployee.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "deployee"
|
3
|
-
s.version = "0.0.
|
3
|
+
s.version = "0.0.2"
|
4
4
|
s.description = "A tool to simplify deployments using AWS auto scaling engine."
|
5
5
|
s.summary = ""
|
6
6
|
s.author = "Eduardo Bohrer, Gabriel Prestes, Guilherme Elias, Robson Bittencourt"
|