cronicle 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cronicle/client.rb +3 -2
- data/lib/cronicle/ext/sshkit_ext.rb +13 -2
- data/lib/cronicle/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a189b3aeef8cda6b76981762bed8c54e81805f00
|
4
|
+
data.tar.gz: 35260f7510d18eb0682bf933f05e768bca7979b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b01ab9de14ca16bcc1e4c8bcf8743c6262d5daf2d94034701461635d4cc7de11dc97c33068a1377b6fc13595d50d69260019f2471619ecb651b9fa351f9dc3bc
|
7
|
+
data.tar.gz: 96fe497b5fe16ad9b54de8f35e17a013605cecca2486ba5446dd46eb5b7ebfe180a0c28e16d4955f4103775dd7be8b7ae50f19abc0e3220f02eb79e266370d59
|
data/lib/cronicle/client.rb
CHANGED
@@ -47,8 +47,9 @@ class Cronicle::Client
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def export_cron(host_list)
|
50
|
-
|
51
|
-
|
50
|
+
run_driver(host_list) do |driver|
|
51
|
+
Cronicle::Exporter.export(driver, @options)
|
52
|
+
end
|
52
53
|
end
|
53
54
|
|
54
55
|
def walk_hosts(jobs_by_host, exported)
|
@@ -175,9 +175,20 @@ class SSHKit::Backend::Netssh
|
|
175
175
|
)
|
176
176
|
|
177
177
|
def bundler_path
|
178
|
-
@bundler_path ||=
|
178
|
+
@bundler_path ||= BUNDLER_PATHS.find {|path|
|
179
179
|
execute(:test, '-f', path, :raise_on_non_zero_exit => false)
|
180
|
-
}
|
180
|
+
}
|
181
|
+
|
182
|
+
path = capture(:which, :bundle, '2>', '/dev/null', :raise_on_non_zero_exit => false) || ''
|
183
|
+
path.strip!
|
184
|
+
|
185
|
+
if path.empty?
|
186
|
+
log_for_cronicle(:error, 'cannot find bundler', :color => :red, :host => host.hostname)
|
187
|
+
else
|
188
|
+
@bundler_path = path
|
189
|
+
end
|
190
|
+
|
191
|
+
@bundler_path
|
181
192
|
end
|
182
193
|
|
183
194
|
def user_libexec_dir(user)
|
data/lib/cronicle/version.rb
CHANGED