engineyard-local 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -48,7 +48,17 @@ module Engineyard
48
48
  end
49
49
 
50
50
  def run_custom_chef_in_application_if_it_exists
51
- "if [[ -d /vagrant/deploy ]] ; then shopt -s nullglob; for rb in /vagrant/deploy/*.rb; do sudo env PATH=/usr/local/ey_resin/bin:/sbin:/bin:/usr/sbin:/usr/bin chef-solo -j /etc/chef/dna.json -c ${rb}; done; shopt -u nullglob; fi"
51
+ <<ESHELL
52
+ if [[ ! -d /etc/chef-custom/recipes ]]; then sudo mkdir -p /etc/chef-custom/recipes; fi;
53
+ if [[ -d /vagrant/cookbooks ]]; then sudo ln -sF /vagrant/cookbooks /etc/chef-custom/recipes/cookbooks; fi;
54
+ echo 'cookbook_path "/etc/chef-custom/recipes/cookbooks"
55
+ log_level :info
56
+ file_store_path "/etc/chef-custom/recipes/"
57
+ file_cache_path "/etc/chef-custom/recipes/"
58
+ node_name "localhost"' > /tmp/_solo.rb;
59
+ sudo mv -f /tmp/_solo.rb /etc/chef-custom/solo.rb;
60
+ sudo env PATH=/usr/local/ey_resin/bin:/sbin:/bin:/usr/sbin:/usr/bin chef-solo -j /etc/chef/dna.json -c /etc/chef-custom/solo.rb;
61
+ ESHELL
52
62
  end
53
63
 
54
64
  def cookbook_uri
@@ -1,5 +1,5 @@
1
1
  module Engineyard
2
2
  module Local
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: engineyard-local
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: