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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f5445de2282cc22a849488f9d12ee7a54df9732d
4
- data.tar.gz: f867b8751ce934ef749f26aa5e2252e7ff6473b9
3
+ metadata.gz: 96cd020762d0e76e87c072e930b3a16b2b001455
4
+ data.tar.gz: 043df99d8d6241ba002905427ba3a8296113c0e5
5
5
  SHA512:
6
- metadata.gz: 13f5280b4b6ccf3d3187bc054d261b93d21085bd30abc340efaff482b5f7ad4fd57e092a5ae0d06cf8ba48c6f4de0d7e21f6f88183d85340ee3eb04dcecf84d3
7
- data.tar.gz: c392623316a041f1b062a0c6acdbf9f814a1052c83c56195b2fe6a0a49c127db2d549e1fd5573ef36d3e81c8b79970b4cb85ebe06d9f11e80aac6cab48728f78
6
+ metadata.gz: 3f8dc423b8d4e5c88f9ea15c141bf6c28d070b41a2e1cdb1908e6deacb45066e3e765f17698f476fb5239f075d41cb7a31fef667d6f2325c471b442561e2ecc2
7
+ data.tar.gz: 0a166a7c17062ef5c48827bd40b001b1ff69aa99ab2d06c52fd817ab7905cea7b12804a02758c2b9e10cfabc69fbfee80e4407b08b93ed7a1860d6ae5bbfc607
@@ -1,7 +1,7 @@
1
1
  module Negroku::Env
2
2
  extend self
3
3
 
4
- ENV_FILE = ".rbenv-vars"
4
+ ENV_FILE = ".rbenv-vars.example"
5
5
 
6
6
  def bulk(selected_stage = nil)
7
7
  if stage = selected_stage || select_stage
@@ -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:linked_files' do |t, args|
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
- before 'deploy:check:linked_files', 'deploy:check:files' do
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
@@ -1,3 +1,3 @@
1
1
  module Negroku
2
- VERSION = '2.0.1'
2
+ VERSION = '2.0.2'
3
3
  end
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.3.0')
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.1
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-05 00:00:00.000000000 Z
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.3.0
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.3.0
222
+ version: 1.4.0
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: whenever
225
225
  requirement: !ruby/object:Gem::Requirement