qb 0.1.1 → 0.1.2

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/exe/qb +11 -3
  3. data/lib/qb/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 28eabfc03a6745fda9c633b86ae3ed0b7d3b3d71
4
- data.tar.gz: f2c3e31e531809973e886ea3c6984eccaf1c69ce
3
+ metadata.gz: b96ab02938e73c26fe0378385e813a910e0565eb
4
+ data.tar.gz: 8596c59e67f48b921b82d3731722661bcb9aca0f
5
5
  SHA512:
6
- metadata.gz: af24b10a53a9badc6f604e2c65250811c52eac70f3a2500d329b6257df44a9085f83df9f9fa07b106b90b2e82f2c07a0740d2443c6c6ea278e9c771c4a6bb142
7
- data.tar.gz: 2bb5e4bd871b1849371a44c24d60ca21674abeef275ef0110722d0e50a6eb2d88a818db85e8fd60103b49ff6284fe1954118ad8f7d7e6df28209321ba42d65e2
6
+ metadata.gz: 7d32e53826da68fc9f8725b408a4d7754e77df49915f31a97d55d8fcd0ba9c4916d789c753c63f82ac658be348b2f963b5bd42f2832baac470a74f459b97bb26
7
+ data.tar.gz: 09abb7fa1a0eb966dec6d40df5bc6a9a0b62020880a6196531d95fe23105d2d0dbd4d68a16ef3ef28bc2af1ca1caf689d1ab1a87fc10c385515f729abe9a39ff
data/exe/qb CHANGED
@@ -269,7 +269,10 @@ def main args
269
269
 
270
270
  debug playbook: playbook
271
271
 
272
- File.open './.qb-playbook.yml', 'w' do |f|
272
+ playbook_path = ROOT + '.qb-playbook.yml'
273
+ debug playbook_path: playbook_path.to_s
274
+
275
+ playbook_path.open('w') do |f|
273
276
  f.write YAML.dump(playbook)
274
277
  end
275
278
 
@@ -280,8 +283,13 @@ def main args
280
283
  f.write YAML.dump(saved_options)
281
284
  end
282
285
  end
283
-
284
- exec "ansible-playbook ./.qb-playbook.yml"
286
+
287
+ Dir.chdir ROOT do
288
+ # install requirements
289
+ Cmds.stream! "ansible-galaxy install --ignore-errors -r %s", [ROOT + 'requirements.yml']
290
+
291
+ Cmds.stream! "ansible-playbook %s", [playbook_path.to_s]
292
+ end
285
293
  end
286
294
 
287
295
  main(ARGV) # if __FILE__ == $0 # doesn't work with gem stub or something?
@@ -1,3 +1,3 @@
1
1
  module QB
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - nrser