qb 0.1.18 → 0.1.19

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: 6eb975b210be08ce0337c76edfd3206c3182b7f3
4
- data.tar.gz: e33159e190cb5562a43c3cedd7c30e1179ee7a0e
3
+ metadata.gz: 318feb9ed96e8436116afdc7ca6e9c0c36d3f856
4
+ data.tar.gz: 270846ed027667040daf691f77d63e657118b6a2
5
5
  SHA512:
6
- metadata.gz: 741b549e8146722b757941e5c3afd9dc9d67ed889ddd8d455038e18d8dd651fdd6e98003338fa1a277087fd1835d9b447be37d06868db112a1da853491a30af6
7
- data.tar.gz: e82f75b6e60cae6630c6b9255021ce4da2104608d0b18675ec5da20a0f55cc3f19ee5eb288720e9f6b5c615e243b1480274b52ab41d991e4a9d4e73ce3b7afd3
6
+ metadata.gz: e8cac0e79f2255e01a801111e7bdc94aba54dddd5c553ae3be646e9348aa04df8dc0690a405193db4135c5f191a325ba033c937c45fa6e6ee6ed2dc81d378ba8
7
+ data.tar.gz: 5202c0c0154ac74d51d2322c514b9556b5c924370d4405d4db2ec45edbb61d4fd0e79900b9193f74379ee4513e583186806ed7fc24b56b78d89a465f7b3ee212
data/exe/qb CHANGED
@@ -264,6 +264,9 @@ def main args
264
264
  # roles_path: tmp_roles_path.to_s
265
265
  # end
266
266
  # end
267
+
268
+ # the `gem` ansible module doesn't work right when the bunlder env vars
269
+ # are set... so we need to clear them.
267
270
  with_clean_env do
268
271
  Cmds.stream! "ANSIBLE_ROLES_PATH=<%= roles_path %> ansible-playbook <%= playbook_path %>",
269
272
  roles_path: ansible_roles_path,
@@ -1,7 +1,7 @@
1
1
  module QB
2
2
  GEM_NAME = 'qb'
3
3
 
4
- VERSION = "0.1.18"
4
+ VERSION = "0.1.19"
5
5
 
6
6
  def self.gemspec
7
7
  Gem.loaded_specs[GEM_NAME]
@@ -1,3 +1,3 @@
1
1
  ---
2
2
  # defaults file for nrser.state_mate
3
- state_mate_version: 0.0.7
3
+ state_mate_version: 0.0.8
@@ -1,18 +1,35 @@
1
1
  #!/usr/bin/env ruby
2
2
  # WANT_JSON
3
3
 
4
- # needed for dev
5
- begin
6
- require 'bundler/setup'
7
- rescue LoadError => e
8
- end
4
+
5
+ # def in_bundle?
6
+
7
+
8
+ # conditionally setup bundler if we're in a bundle
9
+ #
10
+ # if
11
+ # require 'bundler/setup'
12
+ # rescue Exception => e
13
+ # end
9
14
 
10
15
  require 'json'
11
16
  require 'shellwords'
12
17
  require 'pp'
13
18
  require 'yaml'
14
19
 
15
- require 'nrser'
20
+ # ugh... we need to clear the bundler env vars before running
21
+ # `ansible-playbook` because they break the `git` ansible modules.
22
+ #
23
+ # so, what we'll do is just try to require the first gem, and if it fails,
24
+ # require bundler and try again...
25
+ #
26
+ begin
27
+ require 'nrser'
28
+ rescue LoadError => e
29
+ require 'bundler/setup'
30
+ require 'nrser'
31
+ end
32
+
16
33
  require 'state_mate'
17
34
  require 'state_mate/adapters/yaml'
18
35
 
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.18
4
+ version: 0.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - nrser