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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5735bc7e72aa87ca2f8f91bae8fd2b6394454549
4
- data.tar.gz: 93a8cfaf9d61bebbfcf4278706fb9512d4f2e4d2
3
+ metadata.gz: 82c0158306215632095eebdba5aa1dc1d4cdd015
4
+ data.tar.gz: 5d882c858264f513ada3e010587d6b32bd72c116
5
5
  SHA512:
6
- metadata.gz: 2cc1f200024d564b9b8e70d4a4798d023b2233195b182844593d6da0ae9aea84c96242242b4c7b90d09f49d61a7b2bbfa6b00d2567bd8e9682ffa5126d152865
7
- data.tar.gz: d64616db530bc58b0bb1f2e33f9aff441f0258e70564e6a5e8cfb806a413eca33f1923a5dc2286ffa45e594c2530f6c155765404cd4a84dcc3a48542a3890cef
6
+ metadata.gz: 9b8fee29f2905065cde182f97dc4dfc148aa5ba346fcfcc1624948ece1f6ba3d54e3396ef43c0c5b53ac562f72a7d22556757cde869a5dae0571ac20cc1c3e1b
7
+ data.tar.gz: ecaaa35810c655a5c487348eb62f84b1b86ab9ea3fd652a3a990390779dd0fa1ca092d9aebb251c4fc8d2709eab5e9b9283ab166172ef22617e3d512ef22dba4
@@ -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
- execute(command, returns: :none, logging: :both, &block)
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
 
@@ -1,3 +1,3 @@
1
1
  module Milc
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
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.0
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-05-12 00:00:00.000000000 Z
11
+ date: 2015-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logger_pipe