qb 0.1.33 → 0.1.34

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: e88dc98cbf62714f9e34690a767b30e83df1c70b
4
- data.tar.gz: c6632d36ca8a98576fc0c1795e1a163283599373
3
+ metadata.gz: 5e62142abe2a76e71137c01f70e49701b3072ac5
4
+ data.tar.gz: bb5edb184e68c11f551f4e0ef088880b7f31df4f
5
5
  SHA512:
6
- metadata.gz: abb8dedba3c1dbbaa5e15cf4c0e37f9794943e856955870caf74450e1270d5f70db5d9f1e88ba26885fc4b3170fa534f1f42b36a7f6f34e3a285ff756d3413a2
7
- data.tar.gz: 3167d89c947c9d67446661257893ad4cfef15d9df8aaffc1b47c6e4a622d4e0148ece11a2002584828d4fcec396e70425eedef1d2c0639eefff62911b702ebbd
6
+ metadata.gz: 1fb7c905548beac4a67b047ef47740ba3632a6b5bb8399e99114352f4b7bd9594f529f71bf0af42b643361d574c8bef2c61cb3e98baebb0bdd0f746ed4f2e2cb
7
+ data.tar.gz: f4686f8a913ee855c612f700e41acfcb9acb09be3eafef6a8c96e48323b72eb150f865588e7668ab6712f8903aaafd729bd1f01b07aaae5e64d738f9f8b82c7f
@@ -0,0 +1,50 @@
1
+ {
2
+ // present
3
+ $present: 'key',
4
+
5
+ // set
6
+ $set: {key: value},
7
+ // aliases
8
+ $is: ...,
9
+
10
+ // unset
11
+ $unset: 'key',
12
+ // aliases
13
+ $absent: ...,
14
+ $missing: ...,
15
+
16
+ // contains (array)
17
+ //
18
+ $contains: [v1, v2, v3],
19
+ $contains: [{$value: v1, $before: v2, $after: v3}],
20
+
21
+ $contains:
22
+ $contain: ...,
23
+ $includes: ...,
24
+ $include: ...,
25
+
26
+ // missing (array)
27
+ a: {$missing: [v1, v2, v3]},
28
+ // =>
29
+ a: {
30
+ $type: 'array',
31
+ $missing: [v1, v2, v3],
32
+ }
33
+
34
+ $type: 'array',
35
+
36
+ // contains (hash)
37
+ topKey: {$set: {nestedKey: value},
38
+
39
+ $init: value,
40
+ }
41
+
42
+ // init key k to value v
43
+ {
44
+ k: {$init: v},
45
+ // =>
46
+ $type: 'dict',
47
+ k: {
48
+ $defaultValue: v,
49
+ }
50
+ }
data/exe/qb CHANGED
@@ -248,6 +248,8 @@ def main args
248
248
  {
249
249
  'hosts' => qb_options['hosts'],
250
250
  'vars' => playbook_vars,
251
+ # 'gather_subset' => ['!all'],
252
+ 'gather_facts' => qb_options['facts'],
251
253
  'pre_tasks' => [
252
254
  # need ansible 2.1.2.0 at least to run
253
255
  # but this is obviously not flexible enough
@@ -168,6 +168,7 @@ module QB
168
168
 
169
169
  qb_options = {
170
170
  'hosts' => ['localhost'],
171
+ 'facts' => false,
171
172
  }
172
173
 
173
174
  if role.meta['default_user']
@@ -217,6 +218,14 @@ module QB
217
218
  end
218
219
  end
219
220
 
221
+ opts.on(
222
+ '-F',
223
+ '--FACTS',
224
+ "gather facts (often un-needed)",
225
+ ) do |value|
226
+ qb_options['facts'] = value
227
+ end
228
+
220
229
  add opts, role_options, role
221
230
 
222
231
  opts.on_tail("-h", "--help", "Show this message") do
@@ -51,6 +51,7 @@ module QB
51
51
  [
52
52
  QB::ROLES_DIR,
53
53
  Pathname.new(Dir.getwd).join('roles'),
54
+ Pathname.new(Dir.getwd).join('ansible', 'roles'),
54
55
  Pathname.new(Dir.getwd).join('dev', 'roles'),
55
56
  Pathname.new(Dir.getwd).join('dev', 'roles', 'tmp'),
56
57
  ]
@@ -1,7 +1,7 @@
1
1
  module QB
2
2
  GEM_NAME = 'qb'
3
3
 
4
- VERSION = "0.1.33"
4
+ VERSION = "0.1.34"
5
5
 
6
6
  def self.gemspec
7
7
  Gem.loaded_specs[GEM_NAME]
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.33
4
+ version: 0.1.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - nrser
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-29 00:00:00.000000000 Z
11
+ date: 2016-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -143,6 +143,7 @@ files:
143
143
  - dev/scratch/empty/meta/main.yml
144
144
  - dev/scratch/empty/meta/qb.yml
145
145
  - dev/scratch/empty/tasks/main.yml
146
+ - dev/scratch/stateSpec.js
146
147
  - dev/setup.yml
147
148
  - exe/qb
148
149
  - lib/qb.rb