saucier 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/saucier.rb +5 -4
- data/lib/saucier/helpers.rb +4 -1
- data/lib/saucier/recipes/chef_librarian.rb +1 -1
- data/lib/saucier/recipes/chef_solo.rb +1 -0
- data/saucier.gemspec +1 -1
- metadata +4 -4
data/lib/saucier.rb
CHANGED
@@ -14,6 +14,7 @@ module Capistrano::Saucier
|
|
14
14
|
|
15
15
|
namespace :provision do
|
16
16
|
after 'deploy:setup', 'provision:set_ownership'
|
17
|
+
after 'deploy:update_code', 'provision:symlink_cookbooks'
|
17
18
|
after 'deploy:update_code', 'provision:bundle_install'
|
18
19
|
|
19
20
|
set :deploy_to, chef_deploy_to
|
@@ -23,7 +24,7 @@ module Capistrano::Saucier
|
|
23
24
|
deploy.update_code
|
24
25
|
chef_librarian.default
|
25
26
|
chef_solo.default
|
26
|
-
|
27
|
+
deploy.create_symlink
|
27
28
|
end
|
28
29
|
end
|
29
30
|
|
@@ -36,9 +37,9 @@ module Capistrano::Saucier
|
|
36
37
|
end
|
37
38
|
|
38
39
|
task :symlink_cookbooks do
|
39
|
-
|
40
|
-
|
41
|
-
run "
|
40
|
+
shared_librarian= File.join(shared_path, 'tmp', 'librarian')
|
41
|
+
run "mkdir -p #{shared_librarian}"
|
42
|
+
run "ln -sF #{shared_librarian} #{current_release}/tmp/"
|
42
43
|
end
|
43
44
|
|
44
45
|
task :bundle_install do
|
data/lib/saucier/helpers.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
RVM_BIN_PATH='/usr/local/rvm/bin/rvm'
|
2
|
+
|
1
3
|
def _cset(name, *args, &block)
|
2
4
|
unless exists?(name)
|
3
5
|
set(name, *args, &block)
|
@@ -5,5 +7,6 @@ def _cset(name, *args, &block)
|
|
5
7
|
end
|
6
8
|
|
7
9
|
def rvm_wrapper(command)
|
8
|
-
"
|
10
|
+
"#{RVM_BIN_PATH} #{chef_ruby}@#{chef_gemset} --create do #{command}"
|
9
11
|
end
|
12
|
+
|
@@ -18,7 +18,7 @@ module Capistrano::Saucier
|
|
18
18
|
task :install do
|
19
19
|
command = []
|
20
20
|
command << "cd #{current_release}"
|
21
|
-
command << rvm_wrapper("bundle exec librarian-chef install")
|
21
|
+
command << rvm_wrapper("bundle exec librarian-chef install --verbose")
|
22
22
|
run command.join(" && ")
|
23
23
|
end
|
24
24
|
end
|
data/saucier.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: saucier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-10-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -145,7 +145,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
145
145
|
version: '0'
|
146
146
|
segments:
|
147
147
|
- 0
|
148
|
-
hash:
|
148
|
+
hash: -3872926599791731742
|
149
149
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
150
150
|
none: false
|
151
151
|
requirements:
|
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
154
|
version: '0'
|
155
155
|
segments:
|
156
156
|
- 0
|
157
|
-
hash:
|
157
|
+
hash: -3872926599791731742
|
158
158
|
requirements: []
|
159
159
|
rubyforge_project: saucier
|
160
160
|
rubygems_version: 1.8.24
|