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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -9
  3. data/bin/deployee +15 -1
  4. data/deployee.gemspec +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 654aada1c37b70ee8685f7b8195b4e4afa575c65
4
- data.tar.gz: 1c55894ad2160eca2c34cc2bb0ff4681473e4cbb
3
+ metadata.gz: 92c6abd27a63bebf74bec1752b031b9d56ea743a
4
+ data.tar.gz: 4cee16bdff0de6043576f0e80138b1dc924664d8
5
5
  SHA512:
6
- metadata.gz: ce5df9a66009289ff36c38dd53f6b693c64cf5f3e4e01b89fdef033c10487e04f89e5795a831a9e7d3ed5bddcf85c33a90c0279dcf65db1fb19413fed3b14ec9
7
- data.tar.gz: 6319b2905e009353fea5606b1f3c6122d13d9bd801f5d802d2ef4fbeb05c84292421696f807a4fa9627d701bf908c54cdb3389317615829e4ea2a5c1754146ed
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/robsonbittencourt/deployee/wiki/At-Least-One)
21
- * [Blackout](https://github.com/robsonbittencourt/deployee/wiki/Blackout)
22
- * [Computing Preserve](https://github.com/robsonbittencourt/deployee/wiki/Computing-Preserve)
23
- * [Double Capacity](https://github.com/robsonbittencourt/deployee/wiki/Double-Capacity)
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 bundle `gem install bundle`
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 deploy.rb passing as argument the name of the auto scaling group.
31
+ Execute deployee command passing as argument the name of the auto scaling group and strategy.
34
32
 
35
33
  For example:
36
- `ruby deploy.rb -g my_group`
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)
@@ -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 = DoubleCapacityDeployment.new
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]
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "deployee"
3
- s.version = "0.0.1"
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"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deployee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo Bohrer, Gabriel Prestes, Guilherme Elias, Robson Bittencourt