negroku 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/negroku/cli/env.rb +1 -1
- data/lib/negroku/tasks/rbenv.rake +10 -5
- data/lib/negroku/version.rb +1 -1
- data/negroku.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96cd020762d0e76e87c072e930b3a16b2b001455
|
4
|
+
data.tar.gz: 043df99d8d6241ba002905427ba3a8296113c0e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f8dc423b8d4e5c88f9ea15c141bf6c28d070b41a2e1cdb1908e6deacb45066e3e765f17698f476fb5239f075d41cb7a31fef667d6f2325c471b442561e2ecc2
|
7
|
+
data.tar.gz: 0a166a7c17062ef5c48827bd40b001b1ff69aa99ab2d06c52fd817ab7905cea7b12804a02758c2b9e10cfabc69fbfee80e4407b08b93ed7a1860d6ae5bbfc607
|
data/lib/negroku/cli/env.rb
CHANGED
@@ -35,7 +35,7 @@ namespace :rbenv do
|
|
35
35
|
end
|
36
36
|
|
37
37
|
desc "Add environmental variables in the form VAR=value"
|
38
|
-
task :add, [:variable] => 'deploy:check:
|
38
|
+
task :add, [:variable] => 'deploy:check:directories' do |t, args|
|
39
39
|
|
40
40
|
vars = [args.variable] + args.extras
|
41
41
|
|
@@ -47,6 +47,10 @@ namespace :rbenv do
|
|
47
47
|
execute cmd
|
48
48
|
end
|
49
49
|
end
|
50
|
+
|
51
|
+
if test "[ -d #{current_path} ]"
|
52
|
+
invoke 'env:changed'
|
53
|
+
end
|
50
54
|
end
|
51
55
|
|
52
56
|
end
|
@@ -57,11 +61,15 @@ namespace :rbenv do
|
|
57
61
|
within shared_path do
|
58
62
|
execute :sed, "-i", "/^#{args[:key]}=/d", ".rbenv-vars"
|
59
63
|
end
|
64
|
+
|
65
|
+
if test "[ -d #{current_path} ]"
|
66
|
+
invoke 'env:changed'
|
67
|
+
end
|
60
68
|
end
|
61
69
|
end
|
62
70
|
|
63
71
|
# Ensure the rbenv-vars file exist
|
64
|
-
|
72
|
+
after 'deploy:check:directories', 'check:files' do
|
65
73
|
on release_roles fetch(:rbenv_roles) do
|
66
74
|
within shared_path do
|
67
75
|
execute :touch, ".rbenv-vars"
|
@@ -69,8 +77,5 @@ namespace :rbenv do
|
|
69
77
|
end
|
70
78
|
end
|
71
79
|
|
72
|
-
after 'rbenv:vars:add', 'env:changed'
|
73
|
-
after 'rbenv:vars:remove', 'env:changed'
|
74
|
-
|
75
80
|
end
|
76
81
|
end
|
data/lib/negroku/version.rb
CHANGED
data/negroku.gemspec
CHANGED
@@ -31,7 +31,7 @@ spec = Gem::Specification.new do |s|
|
|
31
31
|
s.add_runtime_dependency('capistrano-bower', '~> 1.1.0')
|
32
32
|
s.add_runtime_dependency('capistrano3-nginx', '~> 2.0.4')
|
33
33
|
s.add_runtime_dependency('capistrano3-unicorn', '~> 0.2.1')
|
34
|
-
s.add_runtime_dependency('capistrano3-delayed-job', '~> 1.
|
34
|
+
s.add_runtime_dependency('capistrano3-delayed-job', '~> 1.4.0')
|
35
35
|
s.add_runtime_dependency('whenever', '~> 0.9.4')
|
36
36
|
|
37
37
|
s.add_runtime_dependency('gli','~> 2.12.2')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: negroku
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Ignacio Donoso
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdoc
|
@@ -212,14 +212,14 @@ dependencies:
|
|
212
212
|
requirements:
|
213
213
|
- - ~>
|
214
214
|
- !ruby/object:Gem::Version
|
215
|
-
version: 1.
|
215
|
+
version: 1.4.0
|
216
216
|
type: :runtime
|
217
217
|
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
220
|
- - ~>
|
221
221
|
- !ruby/object:Gem::Version
|
222
|
-
version: 1.
|
222
|
+
version: 1.4.0
|
223
223
|
- !ruby/object:Gem::Dependency
|
224
224
|
name: whenever
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|