gantree 0.0.3 → 0.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4c5ff5bb55afa470f4485017218773421f664e7a
4
- data.tar.gz: 86babcd72e2d58101e22135c0611ec31ade28a82
3
+ metadata.gz: 639bdcebc9785d85076c73716d51f414b215913a
4
+ data.tar.gz: 9e2aaff23ee97385ead27d86feb51dfc5d1fc911
5
5
  SHA512:
6
- metadata.gz: e2846161ada47808c96233bc602676a065386ca08289cceddcbe7acc280bddf36b3fcfa135f5b5de9d70bb74fe4ccedbfffa7f31245de9847aa016afb2d25f11
7
- data.tar.gz: 891bb4b8843ac9af4e096bb00b8a19a0683df1b131e072ce2fe473d9fdf677e554d11c5a48a31bcf1b72cad87f7155da8b2b5a28197592b2904fffc7931eb95e
6
+ metadata.gz: 92a56a1a4a641177625236ec843c7124d538bfb2f4514100cf0928694087ed103cc899182c6f90dbeff3d45981a8934abb79da7822fe7425dd12b8e7f6282965
7
+ data.tar.gz: cb4e2a538b7dfcce56445b14012034e2045c087253026319b2f84904ef4b87a70d93aa90622307e4187872d77c95562de237d6c33ada158f822828be0450321d
data/README.md CHANGED
@@ -31,13 +31,18 @@ docker login
31
31
 
32
32
  Install the gem
33
33
  ```
34
- gem install 'gantree'
34
+ gem install gantree
35
35
  ```
36
36
 
37
37
  ### Initialize
38
38
 
39
39
  What this does is create a new Dockerrun.aws.json inside your repository and uploads your docker login credentials to s3 (for private repo access) so you can do deploys. We need the -u to specify a username to rename your .dockercfg and reference it in the Dockerrun.aws.json
40
40
 
41
+ For a public repo
42
+ ```
43
+ gantree init -p 3000 bleacher/cauldron:master
44
+ ```
45
+ For a private repo
41
46
  ```
42
47
  gantree init -u frodriguez -p 3000 bleacher/cauldron:master
43
48
  ```
@@ -49,6 +54,11 @@ This command renames your Dockerrun.aws.json temporarily to NAME_OF_ENV-GITHUB_H
49
54
  ```
50
55
  gantree deploy stag-cauldron-app-s1
51
56
  ```
57
+ By default this will check for the environment cauldron-stag-s1 and deploy to the app stag-cauldron-app. You can also specify an environment name directly using -e.
58
+
59
+ ```
60
+ gantree deploy -e cauldron-stag-s1 stag-cauldron-app-s1
61
+ ```
52
62
 
53
63
  You can also specify a new image tag to use for the deploy
54
64
 
data/Rakefile CHANGED
@@ -1,4 +1,4 @@
1
- # require "bundler/gem_tasks"
1
+ equire "bundler/gem_tasks"
2
2
  require "rspec/core/rake_task"
3
3
 
4
4
  task :default => :spec
@@ -6,7 +6,7 @@ module Gantree
6
6
  AWS.config(
7
7
  :access_key_id => ENV['AWS_ACCESS_KEY_ID'],
8
8
  :secret_access_key => ENV['AWS_SECRET_ACCESS_KEY'])
9
- @app = @options.env || app.match(/^[a-zA-Z]*\-([a-zA-Z]*)\-[a-zA-Z]*\-([a-zA-Z]*\d*)/)[1] + "-" + app.match(/^([a-zA-Z]*)\-([a-zA-Z]*)\-[a-zA-Z]*\-([a-zA-Z]*\d*)/)[1] + '-' + app.match(/^([a-zA-Z]*)\-([a-zA-Z]*)\-[a-zA-Z]*\-([a-zA-Z]*\d*)/)[3]
9
+ @app = @options[:env] || app.match(/^[a-zA-Z]*\-([a-zA-Z]*)\-[a-zA-Z]*\-([a-zA-Z]*\d*)/)[1] + "-" + app.match(/^([a-zA-Z]*)\-([a-zA-Z]*)\-[a-zA-Z]*\-([a-zA-Z]*\d*)/)[1] + '-' + app.match(/^([a-zA-Z]*)\-([a-zA-Z]*)\-[a-zA-Z]*\-([a-zA-Z]*\d*)/)[3]
10
10
  @env = app
11
11
  @version_label = set_version_label
12
12
  @eb = AWS::ElasticBeanstalk::Client.new
@@ -1,3 +1,3 @@
1
1
  module Gantree
2
- VERSION = "0.0.3"
3
- end
2
+ VERSION = "0.0.4"
3
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gantree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-05 00:00:00.000000000 Z
11
+ date: 2014-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor