capistrano-paratrooper-chef 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -15,7 +15,9 @@ Capistrano::Configuration.instance.load do
|
|
15
15
|
|
16
16
|
# remote chef settings
|
17
17
|
set :chef_solo_path, "chef-solo"
|
18
|
-
set
|
18
|
+
set(:chef_working_dir) {
|
19
|
+
capture("echo $HOME").strip + "/chef-solo"
|
20
|
+
}
|
19
21
|
set :chef_cache_dir, "/var/chef/cache"
|
20
22
|
|
21
23
|
# chef settings
|
@@ -94,8 +96,14 @@ Capistrano::Configuration.instance.load do
|
|
94
96
|
server.options[:chef_attributes]["run_list"] = []
|
95
97
|
end
|
96
98
|
end
|
99
|
+
rescue JSON::ParserError
|
100
|
+
logger.important("Could not parse JSON file: %s" % solo_json_path_for(server.host))
|
97
101
|
rescue
|
98
|
-
|
102
|
+
logger.important("Could not read JSON file: %s" % solo_json_path_for(server.host))
|
103
|
+
ensure
|
104
|
+
if server.options[:chef_attributes].nil?
|
105
|
+
server.options[:chef_attributes] = {"run_list" => []}
|
106
|
+
end
|
99
107
|
end
|
100
108
|
|
101
109
|
if fetch(:chef_roles_auto_discovery)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-paratrooper-chef
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
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: 2013-04-
|
12
|
+
date: 2013-04-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|