qb 0.1.87 → 0.1.88

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: cb9e8047dee27e4e39e6dafccf212d39a2d36672
4
- data.tar.gz: 1123431a0418adf8d1bd9a28eec946fc5dd28ffd
3
+ metadata.gz: 5723177f21a7a76d3c4eac339f7e87f24235f080
4
+ data.tar.gz: a39e95984a295ac9b39b1f8df157fbbb64be69ef
5
5
  SHA512:
6
- metadata.gz: aeedc5cb6a94da0d06f331cdf267b43dbd32334b3e9ba109ad78a9571ad3aed21e1fe8cbb800629a38678bf43f57f93b11c13657aa8e1a5b18d556ac03695951
7
- data.tar.gz: 14a6796efa1497bb73f1a8ec7a76769126bcdd0411eeb2059bec8865847eb187feed14395e92b182908ac241b7db5b4a1b6eaea8d55cbe2e1243be5536757eb7
6
+ metadata.gz: 48f81a50982b092f1f776516225a77321c15f8ab5a5060e868847356c107f2b51d9139f56eaf955ed84d656ea4f26655a050df30e1b085d8ca3d5b181b3d4f83
7
+ data.tar.gz: 35b50434cd7e57c4a57b8efea0f727238f852887d680a7c899dc8252be25495cb9f7c999da3680ea4f776efc9de07cb7f5f6910fb2620bd940e8dac0fc247eb9
@@ -118,6 +118,12 @@ module QB
118
118
  end
119
119
  end
120
120
 
121
+ def info msg
122
+ if @qb_stdio_err
123
+ $stderr.puts msg
124
+ end
125
+ end
126
+
121
127
  # Append a warning message to @warnings.
122
128
  def warn msg
123
129
  @warnings << msg
@@ -4,7 +4,7 @@ module QB
4
4
 
5
5
  GEM_NAME = 'qb'
6
6
 
7
- VERSION = "0.1.87"
7
+ VERSION = "0.1.88"
8
8
 
9
9
  MIN_ANSIBLE_VERSION = Gem::Version.new '2.1.2'
10
10
 
@@ -33,7 +33,13 @@ class Stream < QB::AnsibleModule
33
33
  opts[key] = @args[key].to_sym if @args.key?(key.to_s)
34
34
  }
35
35
 
36
- Cmds.new(template, **opts).stream!
36
+ cmd = Cmds.new(template, **opts)
37
+
38
+ if @args['log']
39
+ info "STREAMING #{ cmd.prepare.inspect }"
40
+ end
41
+
42
+ cmd.stream!
37
43
 
38
44
  changed!
39
45
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.87
4
+ version: 0.1.88
5
5
  platform: ruby
6
6
  authors:
7
7
  - nrser
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-25 00:00:00.000000000 Z
11
+ date: 2017-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler