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 +4 -4
- data/dev/scratch/stateSpec.js +50 -0
- data/exe/qb +2 -0
- data/lib/qb/options.rb +9 -0
- data/lib/qb/role.rb +1 -0
- data/lib/qb/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e62142abe2a76e71137c01f70e49701b3072ac5
|
4
|
+
data.tar.gz: bb5edb184e68c11f551f4e0ef088880b7f31df4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/qb/options.rb
CHANGED
@@ -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
|
data/lib/qb/role.rb
CHANGED
data/lib/qb/version.rb
CHANGED
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.
|
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
|
+
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
|