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 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
- provision.symlink_cookbooks
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
- shared_dir = File.join(shared_path, 'cookbooks')
40
- release_dir = File.join(current_release, 'cookbooks')
41
- run "mkdir -p #{shared_dir}; ln -s #{shared_dir} #{release_dir}"
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
@@ -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
- "rvm #{chef_ruby}@#{chef_gemset} --create do #{command}"
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
@@ -36,3 +36,4 @@ end
36
36
  if instance = Capistrano::Configuration.instance
37
37
  Capistrano::Saucier::Recipes::ChefSolo.load_into(instance)
38
38
  end
39
+
data/saucier.gemspec CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "saucier"
6
- s.version = "0.0.3"
6
+ s.version = "0.0.4"
7
7
  s.authors = ["Shaun Dern"]
8
8
  s.email = ["shaun@substantial.com"]
9
9
  s.homepage = "http://github.com/substantial/saucier"
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.3
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-09-05 00:00:00.000000000 Z
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: 1308848195273489696
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: 1308848195273489696
157
+ hash: -3872926599791731742
158
158
  requirements: []
159
159
  rubyforge_project: saucier
160
160
  rubygems_version: 1.8.24