rubber 2.4.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGELOG +10 -0
- data/lib/rubber/cloud/fog_storage.rb +6 -1
- data/lib/rubber/recipes/rubber/deploy.rb +1 -1
- data/lib/rubber/version.rb +1 -1
- data/templates/sidekiq/config/rubber/deploy-sidekiq.rb +1 -1
- data/test/cloud/aws_test.rb +1 -1
- data/test/cloud/digital_ocean_test.rb +5 -5
- data/test/cloud/fog_test.rb +1 -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: 62f1c83f794e79e016feb8710ab271980a85ab60
|
4
|
+
data.tar.gz: 0c300423e3fbfaea269f3a78461873a4fdfc1f0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1054053c44ae3c830e37f39de2d39e26693eed0095043662a2b5bf3e962ec35386d222b13b929d45f226fa114491c1ae9e3731f1b1732f5dcf5c8798d51cc04b
|
7
|
+
data.tar.gz: 21381ae46616fe1fd9f5d32d76e2f220e96782a45d827e5bf635b9803a159fd481dfcdef170597fed0e034507ec007bcfaced14e2361ae45a0fac4f788aa35f7
|
data/.travis.yml
CHANGED
data/CHANGELOG
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
2.4.1 (05/30/2013)
|
2
|
+
------------------
|
3
|
+
|
4
|
+
Bug Fixes:
|
5
|
+
=========
|
6
|
+
|
7
|
+
[core] Fixed a problem with transforming templates that reference the "current" directory as part of a deploy <21e3b92>
|
8
|
+
[sidekiq] Only try to silence sidekiq if current_path actually exists <f20bd94>
|
9
|
+
|
10
|
+
|
1
11
|
2.4.0 (05/24/2013)
|
2
12
|
------------------
|
3
13
|
|
@@ -103,7 +103,12 @@ module Rubber
|
|
103
103
|
raise "a key is required" unless key && key.size > 0
|
104
104
|
|
105
105
|
if block_given?
|
106
|
-
|
106
|
+
# TODO (nirvdrum 05/24/13) Remove when https://github.com/fog/fog/issues/1832 is fixed.
|
107
|
+
begin
|
108
|
+
@directory.files.get(key, opts, &block)
|
109
|
+
rescue Excon::Errors::NotFound
|
110
|
+
nil
|
111
|
+
end
|
107
112
|
else
|
108
113
|
Rubber::Util.retry_on_failure(*RETRYABLE_EXCEPTIONS) do
|
109
114
|
begin
|
data/lib/rubber/version.rb
CHANGED
@@ -10,7 +10,7 @@ namespace :rubber do
|
|
10
10
|
|
11
11
|
desc "Quiet sidekiq (stop accepting new work)"
|
12
12
|
task :quiet, :roles => :sidekiq do
|
13
|
-
rsudo "cd #{current_path} && if [ -f #{current_path}/tmp/pids/sidekiq.pid ]; then bundle exec sidekiqctl quiet #{current_path}/tmp/pids/sidekiq.pid ; fi", :as => rubber_env.app_user
|
13
|
+
rsudo "if [ -d #{current_path} ]; then cd #{current_path} && if [ -f #{current_path}/tmp/pids/sidekiq.pid ]; then bundle exec sidekiqctl quiet #{current_path}/tmp/pids/sidekiq.pid ; fi; fi", :as => rubber_env.app_user
|
14
14
|
end
|
15
15
|
|
16
16
|
desc "Stop sidekiq"
|
data/test/cloud/aws_test.rb
CHANGED
@@ -19,12 +19,12 @@ class DigitalOceanTest < Test::Unit::TestCase
|
|
19
19
|
|
20
20
|
context '#create_instance' do
|
21
21
|
should 'create instance' do
|
22
|
-
assert @cloud.create_instance('my-instance', 'Ubuntu 12.04 x64 Server', '512MB', [], 'New York 1')
|
22
|
+
assert @cloud.create_instance('my-instance', 'Ubuntu 12.04 x64 Server', '512MB', [], '', 'New York 1')
|
23
23
|
end
|
24
24
|
|
25
25
|
should 'raise error if invalid region' do
|
26
26
|
begin
|
27
|
-
@cloud.create_instance('my-instance', 'Ubuntu 12.04 x64 Server', '512MB', [], 'Mars 1')
|
27
|
+
@cloud.create_instance('my-instance', 'Ubuntu 12.04 x64 Server', '512MB', [], '', 'Mars 1')
|
28
28
|
rescue => e
|
29
29
|
assert_equal 'Invalid region for DigitalOcean: Mars 1', e.message
|
30
30
|
else
|
@@ -34,7 +34,7 @@ class DigitalOceanTest < Test::Unit::TestCase
|
|
34
34
|
|
35
35
|
should 'raise an error if invalid image type' do
|
36
36
|
begin
|
37
|
-
@cloud.create_instance('my-instance', 'Ubuntu 12.04 x64 Server', 'm1.small', [], 'New York 1')
|
37
|
+
@cloud.create_instance('my-instance', 'Ubuntu 12.04 x64 Server', 'm1.small', [], '', 'New York 1')
|
38
38
|
rescue => e
|
39
39
|
assert_equal 'Invalid image type for DigitalOcean: m1.small', e.message
|
40
40
|
else
|
@@ -44,7 +44,7 @@ class DigitalOceanTest < Test::Unit::TestCase
|
|
44
44
|
|
45
45
|
should 'raise an error if invalid image name' do
|
46
46
|
begin
|
47
|
-
@cloud.create_instance('my-instance', 'Windows Server 2003', '512MB', [], 'New York 1')
|
47
|
+
@cloud.create_instance('my-instance', 'Windows Server 2003', '512MB', [], '', 'New York 1')
|
48
48
|
rescue => e
|
49
49
|
assert_equal 'Invalid image name for DigitalOcean: Windows Server 2003', e.message
|
50
50
|
else
|
@@ -58,7 +58,7 @@ class DigitalOceanTest < Test::Unit::TestCase
|
|
58
58
|
env = Rubber::Configuration::Environment::BoundEnv.new(env, nil, nil, nil)
|
59
59
|
cloud = Rubber::Cloud::DigitalOcean.new(env, nil)
|
60
60
|
|
61
|
-
cloud.create_instance('my-instance', 'Ubuntu 12.04 x64 Server', '512MB', [], 'New York 1')
|
61
|
+
cloud.create_instance('my-instance', 'Ubuntu 12.04 x64 Server', '512MB', [], '', 'New York 1')
|
62
62
|
rescue => e
|
63
63
|
assert_equal 'Missing key_file for DigitalOcean', e.message
|
64
64
|
else
|
data/test/cloud/fog_test.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Conway
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-05-
|
12
|
+
date: 2013-05-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|