qb 0.1.21 → 0.1.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/exe/qb +10 -2
  3. data/lib/qb/options.rb +2 -0
  4. data/lib/qb/version.rb +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4af7976c26c507122c178fd8131391846a18ec9b
4
- data.tar.gz: 7dbe344819eee78b2c0e8538d2a2f94aa2a53d0a
3
+ metadata.gz: edfdd80c095e4ab8bb69552dc2657d0f684dcda5
4
+ data.tar.gz: 12bcfa8f876ffdc439a652ebde87f0a8ed817df6
5
5
  SHA512:
6
- metadata.gz: 07d93bbe0e38732aef78e394d011de1feb2c3d0ad6eccc2d0f4ee2a098fc2db53c912c7a0948b11b9d7c9cb271082ab38b803d3c1c5759b5fa27c11ace435b1c
7
- data.tar.gz: 850b828583e2618af34c1b151c8a82636b49abfa45a65310b23b7c867335040a3e6596320aea6eeef5877614643aea676bb12c4d30ca0556cf77075f3116eda2
6
+ metadata.gz: f1f671dfa6971a2a13dcf51772b0dd426babe6948dcd84d7b6920e6a581dc70058ee3cf1984e4c4f65029afbabc599515893325b0bc9ccc8cf23125615bc695f
7
+ data.tar.gz: 50c90d54f4f5433d91edbd762d0bb9b835e67d4f599cba565b17ce4e1c6bbd30eaec85215d614069f4c63b879b1eada0b8c11e9ebde3b997acf792f279d32112
data/exe/qb CHANGED
@@ -275,9 +275,17 @@ def main args
275
275
  # the `gem` ansible module doesn't work right when the bunlder env vars
276
276
  # are set... so we need to clear them.
277
277
  with_clean_env do
278
- Cmds.stream! "ANSIBLE_ROLES_PATH=<%= roles_path %> ansible-playbook <%= playbook_path %>",
278
+ template = []
279
+ template << "ANSIBLE_ROLES_PATH=<%= roles_path %> ansible-playbook"
280
+ if play['hosts'] != ['localhost']
281
+ template << "-i <%= hosts %>"
282
+ end
283
+ template << "<%= playbook_path %>"
284
+
285
+ Cmds.stream! template.join(" "),
279
286
  roles_path: ansible_roles_path,
280
- playbook_path: playbook_path.to_s
287
+ playbook_path: playbook_path.to_s,
288
+ hosts: "#{ play['hosts'].join(',') },"
281
289
  end
282
290
  end
283
291
  end
@@ -177,6 +177,8 @@ module QB
177
177
  "must provide type in qb metadata for option #{ option.meta_name }"
178
178
  when 'string'
179
179
  String
180
+ when 'array'
181
+ Array
180
182
  when Hash
181
183
  if option.meta['type'].key? 'one_of'
182
184
  klass = Class.new
@@ -1,7 +1,7 @@
1
1
  module QB
2
2
  GEM_NAME = 'qb'
3
3
 
4
- VERSION = "0.1.21"
4
+ VERSION = "0.1.22"
5
5
 
6
6
  def self.gemspec
7
7
  Gem.loaded_specs[GEM_NAME]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.21
4
+ version: 0.1.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - nrser