hula 0.10.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/hula/cloud_foundry.rb +9 -9
- data/lib/hula/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7723f8cd9bdda2493e0fab74f40350e63f374f74
|
|
4
|
+
data.tar.gz: 6f3413a172b4585bae440186f50bcb9990abbae1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 53b0d018f335cce6b3d61c7907f8e82a6f1457e789b870ef656eff9406c72e110b58511a8b97692d77aca0840bcfaaed08258f0aa789d9825117c3ac34b8b2ac
|
|
7
|
+
data.tar.gz: a2d6d5fbc46a6c5192a606768a96d566165835769e7f4198fc575bf9944a659cb492e6d83465986a30231488c175c2005c00f5f2bbae33e05e4e601aaf84eb93
|
data/lib/hula/cloud_foundry.rb
CHANGED
|
@@ -284,6 +284,15 @@ module Hula
|
|
|
284
284
|
JSON.parse(output)
|
|
285
285
|
end
|
|
286
286
|
|
|
287
|
+
def cf(command, options = {})
|
|
288
|
+
allow_failure = options.fetch(:allow_failure, false)
|
|
289
|
+
cf_command = "cf #{command}"
|
|
290
|
+
|
|
291
|
+
logger.info(cf_command)
|
|
292
|
+
|
|
293
|
+
command_runner.run(cf_command, allow_failure: allow_failure)
|
|
294
|
+
end
|
|
295
|
+
|
|
287
296
|
private
|
|
288
297
|
|
|
289
298
|
attr_reader :logger, :command_runner
|
|
@@ -307,15 +316,6 @@ module Hula
|
|
|
307
316
|
@default_command_runner ||= CommandRunner.new(environment: env)
|
|
308
317
|
end
|
|
309
318
|
|
|
310
|
-
def cf(command, options = {})
|
|
311
|
-
allow_failure = options.fetch(:allow_failure, false)
|
|
312
|
-
cf_command = "cf #{command}"
|
|
313
|
-
|
|
314
|
-
logger.info(cf_command)
|
|
315
|
-
|
|
316
|
-
command_runner.run(cf_command, allow_failure: allow_failure)
|
|
317
|
-
end
|
|
318
|
-
|
|
319
319
|
def env
|
|
320
320
|
@env ||= ENV.to_hash.merge(
|
|
321
321
|
'PATH' => clean_path,
|
data/lib/hula/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hula
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.10.
|
|
4
|
+
version: 0.10.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Will Pragnell
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-07-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|