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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c161d0c728f733b1caba8893e2076b1233479a6c
4
- data.tar.gz: bc011777da1c1cb2a9ae6cd77d85b4c8538ca579
3
+ metadata.gz: c3e8e09040cb333e98c4d0c13bd13d07a57cd222
4
+ data.tar.gz: 124c88b2879f2f1c73e4f85b609111f15ba80d40
5
5
  SHA512:
6
- metadata.gz: 6bec3a8df34550a01e00091f81c354f762b8314b12f0b7c6f0ad72716c6353b8c06ac6df1c5e2f54f3f3afc15000179c37666e484c9dcc718d9ce49ecefcbf9d
7
- data.tar.gz: 1ec020f93b12e33db499198a70f280f6519cbf261476bc9754e256807746ee827f29259e38b2f4ec226f6356f3ab3f5606d7cee18da8e3aed8b29e4ae10c60e4
6
+ metadata.gz: 07fb938a4e806c7971bb4ae80ab21b5d936f32d861bc2abd02a93fa2bed054628149cf45567893d3fb6e5272a88b004651be528d0dfc9f91ed606682d33ebcaa
7
+ data.tar.gz: 2d3e77ffc132dd0e1eda861df741a1777e25b8299a72fac40ec025763bba1c8e07e87772cb30f61eea79e80f7a48888b805a1a4c2f448f5fa86c0dba2961ef0e
data/Gemfile CHANGED
@@ -6,4 +6,5 @@ gemspec
6
6
  gem 'redcarpet', :platform => :mri
7
7
  gem 'yard'
8
8
  gem 'rake'
9
- gem 'railties', "3.2.18"
9
+ gem 'railties'
10
+ gem 'test-unit'
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
@@ -1,3 +1,3 @@
1
1
  module EbDeployer
2
- VERSION = "0.6.0.beta3"
2
+ VERSION = "0.6.0.beta4"
3
3
  end
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class CloudFormationProvisionerTest < MiniTest::Unit::TestCase
3
+ class CloudFormationProvisionerTest < Test::Unit::TestCase
4
4
  def setup
5
5
  @cf = CFStub.new
6
6
  @provisioner = EbDeployer::CloudFormationProvisioner.new("myresources", @cf)
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class ConfigLoaderTest < MiniTest::Test
3
+ class ConfigLoaderTest < Test::Unit::TestCase
4
4
  def setup
5
5
  @loader = EbDeployer::ConfigLoader.new
6
6
  @sample_package = sample_file('app-package.war')
data/test/deploy_test.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class DeployTest < MiniTest::Test
3
+ class DeployTest < Test::Unit::TestCase
4
4
  def setup
5
5
  @eb = ErrorRaisingWrapper.new(EBStub.new)
6
6
  @s3_driver = S3Stub.new
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class EbEnvironmentTest < MiniTest::Test
3
+ class EbEnvironmentTest < Test::Unit::TestCase
4
4
  def setup
5
5
  @eb_driver = EBStub.new
6
6
  @eb_driver.create_application("myapp")
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class EventPollerTest < MiniTest::Test
3
+ class EventPollerTest < Test::Unit::TestCase
4
4
  def setup
5
5
  @eb = EBStub.new
6
6
  @poller = EbDeployer::EventPoller.new("myapp", "test", @eb)
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class SmokeTestTest < MiniTest::Test
3
+ class SmokeTestTest < Test::Unit::TestCase
4
4
  def test_call_proc_type_smoke_tests
5
5
  host_name_in_proc = nil
6
6
  EbDeployer::SmokeTest.new(lambda {|v| host_name_in_proc = v }).run("foo")
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 'minitest/autorun'
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 MiniTest::Test
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.beta3
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-22 00:00:00.000000000 Z
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