eb_deployer 0.6.0.beta3 → 0.6.0.beta4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -1
- data/eb_deployer.gemspec +0 -1
- data/lib/eb_deployer/aws_driver/cloud_formation_driver.rb +8 -2
- data/lib/eb_deployer/version.rb +1 -1
- data/test/cloud_formation_provisioner_test.rb +1 -1
- data/test/config_loader_test.rb +1 -1
- data/test/deploy_test.rb +1 -1
- data/test/eb_environment_test.rb +1 -1
- data/test/event_poller_test.rb +1 -1
- data/test/smoke_test_test.rb +1 -1
- data/test/test_helper.rb +2 -3
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3e8e09040cb333e98c4d0c13bd13d07a57cd222
|
4
|
+
data.tar.gz: 124c88b2879f2f1c73e4f85b609111f15ba80d40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07fb938a4e806c7971bb4ae80ab21b5d936f32d861bc2abd02a93fa2bed054628149cf45567893d3fb6e5272a88b004651be528d0dfc9f91ed606682d33ebcaa
|
7
|
+
data.tar.gz: 2d3e77ffc132dd0e1eda861df741a1777e25b8299a72fac40ec025763bba1c8e07e87772cb30f61eea79e80f7a48888b805a1a4c2f448f5fa86c0dba2961ef0e
|
data/Gemfile
CHANGED
data/eb_deployer.gemspec
CHANGED
@@ -10,7 +10,6 @@ Gem::Specification.new do |gem|
|
|
10
10
|
gem.license = 'MIT'
|
11
11
|
|
12
12
|
gem.add_runtime_dependency 'aws-sdk', '~> 2', '>= 2.0.0'
|
13
|
-
gem.add_development_dependency 'minitest', '~> 5'
|
14
13
|
|
15
14
|
gem.files = `git ls-files`.split($\).reject {|f| f =~ /^samples\// }
|
16
15
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
@@ -15,13 +15,15 @@ module EbDeployer
|
|
15
15
|
|
16
16
|
def create_stack(name, template, opts)
|
17
17
|
@client.create_stack(opts.merge(:stack_name => name,
|
18
|
-
:template_body => template
|
18
|
+
:template_body => template,
|
19
|
+
:parameters => convert_parameters(opts[:parameters])))
|
19
20
|
end
|
20
21
|
|
21
22
|
def update_stack(name, template, opts)
|
22
23
|
begin
|
23
24
|
@client.update_stack(opts.merge(:stack_name => name,
|
24
|
-
:template_body => template
|
25
|
+
:template_body => template,
|
26
|
+
:parameters => convert_parameters(opts[:parameters]))
|
25
27
|
rescue Aws::CloudFormation::Errors::ValidationError => e
|
26
28
|
if e.message =~ /No updates are to be performed/
|
27
29
|
log(e.message)
|
@@ -49,6 +51,10 @@ module EbDeployer
|
|
49
51
|
def log(msg)
|
50
52
|
puts "[#{Time.now.utc}][cloud_formation_driver] #{msg}"
|
51
53
|
end
|
54
|
+
|
55
|
+
def convert_parameters(params)
|
56
|
+
params.map { |k, v| {:parameter_key => k, :parameter_value => v}}
|
57
|
+
end
|
52
58
|
end
|
53
59
|
end
|
54
60
|
end
|
data/lib/eb_deployer/version.rb
CHANGED
data/test/config_loader_test.rb
CHANGED
data/test/deploy_test.rb
CHANGED
data/test/eb_environment_test.rb
CHANGED
data/test/event_poller_test.rb
CHANGED
data/test/smoke_test_test.rb
CHANGED
data/test/test_helper.rb
CHANGED
@@ -3,8 +3,7 @@ $:.unshift(File.expand_path("../../lib", __FILE__))
|
|
3
3
|
require 'tempfile'
|
4
4
|
require 'eb_deployer'
|
5
5
|
require 'aws_driver_stubs'
|
6
|
-
require '
|
7
|
-
require 'minitest/pride'
|
6
|
+
require 'test/unit'
|
8
7
|
|
9
8
|
def silence_warnings(&block)
|
10
9
|
old_verbose, $VERBOSE = $VERBOSE, nil
|
@@ -55,7 +54,7 @@ class ErrorRaisingWrapper < SimpleDelegator
|
|
55
54
|
end
|
56
55
|
end
|
57
56
|
|
58
|
-
class
|
57
|
+
class Test::Unit::TestCase
|
59
58
|
def sample_file(file_name, content='s' * 100)
|
60
59
|
path = File.join('/tmp', file_name)
|
61
60
|
File.open(path, 'w') { |f| f << content }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eb_deployer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.0.
|
4
|
+
version: 0.6.0.beta4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- wpc
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-05-
|
12
|
+
date: 2015-05-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aws-sdk
|
@@ -31,20 +31,6 @@ dependencies:
|
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 2.0.0
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
|
-
name: minitest
|
36
|
-
requirement: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '5'
|
41
|
-
type: :development
|
42
|
-
prerelease: false
|
43
|
-
version_requirements: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '5'
|
48
34
|
description: For automating Blue-Green deployment flows on Elastic Beanstalk.
|
49
35
|
email:
|
50
36
|
- alex.hal9000@gmail.com
|