gantree 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +4 -4
- data/Gemfile.lock +4 -4
- data/gantree.gemspec +5 -5
- data/lib/gantree/cfn/beanstalk.rb +1 -2
- data/lib/gantree/cli.rb +1 -1
- data/lib/gantree/stack.rb +0 -3
- data/lib/gantree/version.rb +1 -1
- data/spec/lib/gantree/cli_spec.rb +1 -1
- metadata +29 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 105df92d42b890051d4acf32555d20832af5f372
|
4
|
+
data.tar.gz: b1c8e885c8ee28fb706ab4d22147e3b35f873c92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca3735235ea23c4651da588e23e0ced09833b734a8eb72d3919cab030085700d8025e0a0f06b70727042f70800231859a6ea31d033f338bb29bb56a69340a4f2
|
7
|
+
data.tar.gz: f863665d286ffee0207e1df22c9e0fda17ae4926b5532c47ea1180676b9969a6b64021ef9920f5b54d274fb2bdb76e93ed6a1ce8100054e64fc567687c58583e
|
data/Gemfile
CHANGED
@@ -2,17 +2,17 @@ source 'https://rubygems.org'
|
|
2
2
|
|
3
3
|
# Specify your gem's dependencies in gantree.gemspec
|
4
4
|
gem "codeclimate-test-reporter", group: :test, require: nil
|
5
|
-
gem "aws-sdk-v1"
|
5
|
+
gem "aws-sdk-v1", "~>1.55.0"
|
6
6
|
gem "guard", group: :test
|
7
7
|
gem "guard-bundler", group: :test
|
8
8
|
gem "rspec", group: :test
|
9
9
|
gem "rake"
|
10
10
|
gem "guard-rspec", require: false
|
11
11
|
gem "webmock"
|
12
|
-
gem "cloudformation-ruby-dsl"
|
13
|
-
gem "archive-zip"
|
12
|
+
gem "cloudformation-ruby-dsl", "0.4.6"
|
13
|
+
gem "archive-zip", "~>0.7.0"
|
14
14
|
gem "json"
|
15
|
-
gem "slackr"
|
15
|
+
gem "slackr", "0.0.6"
|
16
16
|
gem "highline"
|
17
17
|
gem "pry"
|
18
18
|
gem "vcr"
|
data/Gemfile.lock
CHANGED
@@ -89,9 +89,9 @@ PLATFORMS
|
|
89
89
|
ruby
|
90
90
|
|
91
91
|
DEPENDENCIES
|
92
|
-
archive-zip
|
93
|
-
aws-sdk-v1
|
94
|
-
cloudformation-ruby-dsl
|
92
|
+
archive-zip (~> 0.7.0)
|
93
|
+
aws-sdk-v1 (~> 1.55.0)
|
94
|
+
cloudformation-ruby-dsl (= 0.4.6)
|
95
95
|
codeclimate-test-reporter
|
96
96
|
colorize
|
97
97
|
fakeweb
|
@@ -103,6 +103,6 @@ DEPENDENCIES
|
|
103
103
|
pry
|
104
104
|
rake
|
105
105
|
rspec
|
106
|
-
slackr
|
106
|
+
slackr (= 0.0.6)
|
107
107
|
vcr
|
108
108
|
webmock
|
data/gantree.gemspec
CHANGED
@@ -19,22 +19,22 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
21
|
spec.add_dependency "thor"
|
22
|
-
spec.add_dependency "aws-sdk-v1"
|
22
|
+
spec.add_dependency "aws-sdk-v1", "~>1.55.0"
|
23
23
|
spec.add_dependency "hashie"
|
24
24
|
spec.add_dependency "colorize"
|
25
25
|
spec.add_dependency "rubyzip"
|
26
|
-
spec.add_dependency "cloudformation-ruby-dsl"
|
27
|
-
spec.add_dependency "archive-zip"
|
26
|
+
spec.add_dependency "cloudformation-ruby-dsl","0.4.6"
|
27
|
+
spec.add_dependency "archive-zip","~>0.7.0"
|
28
28
|
spec.add_dependency "json"
|
29
|
-
spec.add_dependency "slackr"
|
29
|
+
spec.add_dependency "slackr","0.0.6"
|
30
30
|
spec.add_dependency "highline"
|
31
|
+
spec.add_dependency "pry"
|
31
32
|
|
32
33
|
spec.add_development_dependency "bundler", "~> 1.3"
|
33
34
|
spec.add_development_dependency "rake"
|
34
35
|
spec.add_development_dependency "guard"
|
35
36
|
spec.add_development_dependency "guard-bundler"
|
36
37
|
spec.add_development_dependency "guard-rspec"
|
37
|
-
spec.add_development_dependency "pry"
|
38
38
|
spec.add_development_dependency "vcr"
|
39
39
|
end
|
40
40
|
|
@@ -3,7 +3,7 @@ class BeanstalkTemplate
|
|
3
3
|
def initialize params
|
4
4
|
@stack_name = params[:stack_name]
|
5
5
|
@docker_version = params[:docker_version]
|
6
|
-
@docker_version ||= "64bit Amazon Linux 2014.09 v1.0.
|
6
|
+
@docker_version ||= "64bit Amazon Linux 2014.09 v1.0.9 running Docker 1.2.0"
|
7
7
|
@size = params[:instance_size]
|
8
8
|
@rds = params[:rds]
|
9
9
|
@env = params[:env]
|
@@ -70,7 +70,6 @@ class BeanstalkTemplate
|
|
70
70
|
parameter 'InstanceType',
|
71
71
|
:Description => 'EC2 Instance Type',
|
72
72
|
:Type => 'String',
|
73
|
-
:AllowedValues => %w(t1.micro m1.small m3.medium m3.large m3.xlarge m3.2xlarge c3.large c3.xlarge c3.2xlarge c3.4xlarge c3.8xlarge),
|
74
73
|
:Default => '#{@size}'
|
75
74
|
|
76
75
|
parameter 'ApplicationName',
|
data/lib/gantree/cli.rb
CHANGED
@@ -29,7 +29,7 @@ module Gantree
|
|
29
29
|
|
30
30
|
desc "create APP", "create a cfn stack"
|
31
31
|
method_option :env, :aliases => "-e", :desc => "(optional) environment name"
|
32
|
-
method_option :instance_size, :aliases => "-i", :desc => "(optional) set instance size"
|
32
|
+
method_option :instance_size, :aliases => "-i", :desc => "(optional) set instance size", :default => "m3.medium"
|
33
33
|
method_option :rds, :aliases => "-r", :desc => "(optional) set database type [pg,mysql]"
|
34
34
|
option :dry_run, :aliases => "-d", :desc => "do not actually create the stack"
|
35
35
|
option :docker_version, :desc => "set the version of docker to use as solution stack"
|
data/lib/gantree/stack.rb
CHANGED
@@ -13,15 +13,12 @@ module Gantree
|
|
13
13
|
set_aws_keys
|
14
14
|
|
15
15
|
@cfm = AWS::CloudFormation.new
|
16
|
-
@size = options[:instance_size]
|
17
|
-
@size ||= "t1.micro"
|
18
16
|
@requirements = "#!/usr/bin/env ruby
|
19
17
|
require 'cloudformation-ruby-dsl/cfntemplate'
|
20
18
|
require 'cloudformation-ruby-dsl/spotprice'
|
21
19
|
require 'cloudformation-ruby-dsl/table'"
|
22
20
|
@env = options[:env] || default_name(stack_name)
|
23
21
|
additional_options = {
|
24
|
-
instance_size: @size,
|
25
22
|
stack_name: stack_name,
|
26
23
|
requirements: @requirements,
|
27
24
|
cfn_bucket: "br-templates",
|
data/lib/gantree/version.rb
CHANGED
@@ -72,7 +72,7 @@ describe Gantree::CLI do
|
|
72
72
|
describe "create" do
|
73
73
|
it "should create clusters" do
|
74
74
|
out = execute("bin/gantree create #{@env} --dry-run")
|
75
|
-
expect(out).to include "instance_size:
|
75
|
+
expect(out).to include "instance_size: m3.medium"
|
76
76
|
expect(out).to include "stack_name: stag-knarr-app-s1"
|
77
77
|
expect(out).to include "cfn_bucket: br-templates"
|
78
78
|
expect(out).to include "env: knarr-stag-s1"
|
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.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: aws-sdk-v1
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 1.55.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 1.55.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: hashie
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -84,30 +84,30 @@ dependencies:
|
|
84
84
|
name: cloudformation-ruby-dsl
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - '='
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 0.4.6
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - '='
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: 0.4.6
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: archive-zip
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: 0.7.0
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - "
|
108
|
+
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: 0.7.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: json
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -124,6 +124,20 @@ dependencies:
|
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: slackr
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - '='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 0.0.6
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - '='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 0.0.6
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: highline
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|
128
142
|
requirements:
|
129
143
|
- - ">="
|
@@ -137,7 +151,7 @@ dependencies:
|
|
137
151
|
- !ruby/object:Gem::Version
|
138
152
|
version: '0'
|
139
153
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
154
|
+
name: pry
|
141
155
|
requirement: !ruby/object:Gem::Requirement
|
142
156
|
requirements:
|
143
157
|
- - ">="
|
@@ -220,20 +234,6 @@ dependencies:
|
|
220
234
|
- - ">="
|
221
235
|
- !ruby/object:Gem::Version
|
222
236
|
version: '0'
|
223
|
-
- !ruby/object:Gem::Dependency
|
224
|
-
name: pry
|
225
|
-
requirement: !ruby/object:Gem::Requirement
|
226
|
-
requirements:
|
227
|
-
- - ">="
|
228
|
-
- !ruby/object:Gem::Version
|
229
|
-
version: '0'
|
230
|
-
type: :development
|
231
|
-
prerelease: false
|
232
|
-
version_requirements: !ruby/object:Gem::Requirement
|
233
|
-
requirements:
|
234
|
-
- - ">="
|
235
|
-
- !ruby/object:Gem::Version
|
236
|
-
version: '0'
|
237
237
|
- !ruby/object:Gem::Dependency
|
238
238
|
name: vcr
|
239
239
|
requirement: !ruby/object:Gem::Requirement
|