milc 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/milc/dsl/ansible.rb +7 -1
- data/lib/milc/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: 82c0158306215632095eebdba5aa1dc1d4cdd015
|
4
|
+
data.tar.gz: 5d882c858264f513ada3e010587d6b32bd72c116
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b8fee29f2905065cde182f97dc4dfc148aa5ba346fcfcc1624948ece1f6ba3d54e3396ef43c0c5b53ac562f72a7d22556757cde869a5dae0571ac20cc1c3e1b
|
7
|
+
data.tar.gz: ecaaa35810c655a5c487348eb62f84b1b86ab9ea3fd652a3a990390779dd0fa1ca092d9aebb251c4fc8d2709eab5e9b9283ab166172ef22617e3d512ef22dba4
|
data/lib/milc/dsl/ansible.rb
CHANGED
@@ -7,7 +7,13 @@ module Milc::Dsl
|
|
7
7
|
# https://github.com/mitchellh/vagrant/blob/0098b7604d071948fd37b16dd10b87b6df49b624/plugins/provisioners/ansible/provisioner.rb#L58
|
8
8
|
command = "ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook #{cmd}"
|
9
9
|
command << " -vvvv" if Milc.verbose
|
10
|
-
|
10
|
+
begin
|
11
|
+
execute(command, returns: :none, logging: :both, &block)
|
12
|
+
rescue LoggerPipe::Failure => e
|
13
|
+
$stderr.puts e.buffer.join
|
14
|
+
$stderr.puts("\e[31m[#{e.class.name}] #{e.message}\e[0m")
|
15
|
+
raise e
|
16
|
+
end
|
11
17
|
nil
|
12
18
|
end
|
13
19
|
|
data/lib/milc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: milc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- akm
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logger_pipe
|