gantree 0.1.4 → 0.1.5
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/.travis.yml +3 -1
- data/lib/gantree/cfn/beanstalk.rb +4 -2
- data/lib/gantree/cli.rb +1 -0
- data/lib/gantree/version.rb +1 -1
- data/spec/lib/cli_spec.rb +11 -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: 9dbacb4633cc6fef3413dc281e3bd60c3188cda7
|
4
|
+
data.tar.gz: 500a15e1bd209a0c846b8d254a63517b210e5871
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0fc8192cac39d17b53d0d396491974837d3d461a48b70f23698e00ac0338294f608388a7665431863f75194987e929e2f3e262b4546750b2601abe43b1e2ff6
|
7
|
+
data.tar.gz: 49eab4d9bd04ab5cb645e382d7dc65a68997e0dd8a0bd861575b113959227d2599dd70a57f4b9b41806d6e0d27efd5a879608a319c1814a31369085aa6ba945e
|
data/.travis.yml
CHANGED
@@ -2,8 +2,10 @@ language: ruby
|
|
2
2
|
cache: bundler
|
3
3
|
rvm:
|
4
4
|
- 2.1.2
|
5
|
-
before_script: echo "{"https://index.docker.io/v1/":{"auth":"ZmVlbG9ib3Q6azF6a2F6a29udHIwbDF0","email":"felix.a.rod@gmail.com"}"
|
5
|
+
before_script: echo "{"https://index.docker.io/v1/":{"auth":"ZmVlbG9ib3Q6azF6a2F6a29udHIwbDF0","email":"felix.a.rod@gmail.com"}"
|
6
|
+
> $HOME/.dockercfg
|
6
7
|
env:
|
7
8
|
global:
|
8
9
|
- secure: OoLMnBOcoXTPOimdyh4ju8yW2YpLBXEOdljN1gVQzjIIv24cQ0BxWAAktjExntkYAjnRpxzTKK5ZkWadXm8NK7TtzFU80padk+WYVzuE1Xngxw/OhS1Z6NYL8+D3ortSANqoOB6r/Z13Sb5XClYDWlj5/GGzf4AerY5xgh2nJQc=
|
9
10
|
- secure: MCPnXXEMJkamb3HuYS0H+YeMDKORYAekCfB8YMrtUeMR3QTSe2yQ6eMaNC/I2D5g8cNw60mRagaMyDMadZ4aVQ4sUK1YOHexs/vPJrVrIJU8ZGFsueQyboJun1NZLGvKAIAok7yAEEfwftCd+svYrtrTtV88fk9deOnBLs4o3gM=
|
11
|
+
- secure: QZ00MAXO+Lblk/6Q0Bi+YQQLJtJYVHqMattxjIi72q5aOPQOSMT8UjDvOhDF2D/Le0wGBqVQxpxbpP/5cSGCLxtAfBijTyIirnkqV2td4hiXNfyQn3a+KnOifquJ8Vmo1tp/vvKGN16PIrLQCi5ARlcTj8QxfOFIihsrpelg9Ik=
|
@@ -2,6 +2,8 @@ class BeanstalkTemplate
|
|
2
2
|
|
3
3
|
def initialize params
|
4
4
|
@stack_name = params[:stack_name]
|
5
|
+
@docker_version = params[:docker_version]
|
6
|
+
@docker_version ||= "1.2.0"
|
5
7
|
@size = params[:instance_size]
|
6
8
|
@rds = params[:rds]
|
7
9
|
@env = params[:env]
|
@@ -91,8 +93,8 @@ class BeanstalkTemplate
|
|
91
93
|
def configuration_template
|
92
94
|
"resource 'ConfigurationTemplate', :Type => 'AWS::ElasticBeanstalk::ConfigurationTemplate', :Properties => {
|
93
95
|
:ApplicationName => ref('Application'),
|
94
|
-
:SolutionStackName => '64bit Amazon Linux 2014.03 v1.0.1 running Docker
|
95
|
-
:Description => 'Default Configuration Version
|
96
|
+
:SolutionStackName => '64bit Amazon Linux 2014.03 v1.0.1 running Docker #{@docker_version}',
|
97
|
+
:Description => 'Default Configuration Version #{@docker_version} - with SSH access',
|
96
98
|
:OptionSettings => [
|
97
99
|
{
|
98
100
|
:Namespace => 'aws:elasticbeanstalk:application:environment',
|
data/lib/gantree/cli.rb
CHANGED
@@ -27,6 +27,7 @@ module Gantree
|
|
27
27
|
method_option :instance_size, :aliases => "-i", :desc => "(optional) set instance size"
|
28
28
|
method_option :rds, :aliases => "-r", :desc => "(optional) set database type [pg,mysql]"
|
29
29
|
option :dry_run, :aliases => "-d", :desc => "do not actually create the stack"
|
30
|
+
option :docker_version, :desc => "set the version of docker to use as solution stack"
|
30
31
|
def create app
|
31
32
|
Gantree::Stack.new(app, options.merge(gantreecfg)).create
|
32
33
|
end
|
data/lib/gantree/version.rb
CHANGED
data/spec/lib/cli_spec.rb
CHANGED
@@ -7,7 +7,8 @@ require 'spec_helper'
|
|
7
7
|
# $ rake clean:vcr ; time rake
|
8
8
|
describe Gantree::CLI do
|
9
9
|
before(:all) do
|
10
|
-
@env = "stag-app-
|
10
|
+
@env = "stag-knarr-app-s1"
|
11
|
+
@app = "knarr-stag-s1"
|
11
12
|
@owner = "bleacher"
|
12
13
|
@repo = "cauldron"
|
13
14
|
@tag = "master"
|
@@ -47,6 +48,15 @@ describe Gantree::CLI do
|
|
47
48
|
describe "create" do
|
48
49
|
it "should create clusters" do
|
49
50
|
out = execute("bin/gantree create #{@env} --dry-run")
|
51
|
+
beanstalk = IO.read("cfn/#{@app}-beanstalk.cfn.json")
|
52
|
+
expect(beanstalk).to include "Docker 1.2.0"
|
53
|
+
expect(out).to include "All templates created"
|
54
|
+
end
|
55
|
+
|
56
|
+
it "should create clusters with any docker version" do
|
57
|
+
out = execute("bin/gantree create #{@env} --dry-run --docker-version '1.0.0'")
|
58
|
+
beanstalk = IO.read("cfn/#{@app}-beanstalk.cfn.json")
|
59
|
+
expect(beanstalk).to include "Docker 1.0.0"
|
50
60
|
expect(out).to include "All templates created"
|
51
61
|
end
|
52
62
|
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.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|