qb 0.1.2 → 0.1.3

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: b96ab02938e73c26fe0378385e813a910e0565eb
4
- data.tar.gz: 8596c59e67f48b921b82d3731722661bcb9aca0f
3
+ metadata.gz: d57852f4efcbb469892e70fad120b767400ea846
4
+ data.tar.gz: 5fd7da81207898ab468edc10d548d0a419707e6f
5
5
  SHA512:
6
- metadata.gz: 7d32e53826da68fc9f8725b408a4d7754e77df49915f31a97d55d8fcd0ba9c4916d789c753c63f82ac658be348b2f963b5bd42f2832baac470a74f459b97bb26
7
- data.tar.gz: 09abb7fa1a0eb966dec6d40df5bc6a9a0b62020880a6196531d95fe23105d2d0dbd4d68a16ef3ef28bc2af1ca1caf689d1ab1a87fc10c385515f729abe9a39ff
6
+ metadata.gz: 19c8ed070b42d59e5889eaa06545c467f5c822100c16addf044b3c2355c6700e28a6451db7a59e44051e3fb7553eb3c2e65a366260ed341fcf6810f98ede6063
7
+ data.tar.gz: 45ae2b7a8d226c9e4aa521934c8b257e2489c2ef5b08a3736174f59064a095d1c3e1663dd36a963f5c758a0f1c0e41aeca338b631631062469ec3ced44c591d5
data/.gitignore CHANGED
@@ -1,9 +1,13 @@
1
1
  # temp playbook created by qb for ansible-playbook to consume
2
2
  /.qb-playbook.yml
3
+
3
4
  /dev/repos
4
5
  /dev/ref/repos
5
6
  /tmp
7
+
8
+ ##############################################################################
6
9
  # BEGIN Global/OSX.gitignore
10
+ #
7
11
  .DS_Store
8
12
  .AppleDouble
9
13
  .LSOverride
@@ -29,8 +33,13 @@ Icon
29
33
  Network Trash Folder
30
34
  Temporary Items
31
35
  .apdisk
36
+ #
32
37
  # END Global/OSX.gitignore
38
+ ##############################################################################
39
+
40
+ ##############################################################################
33
41
  # BEGIN Ruby.gitignore
42
+ #
34
43
  /*.gem
35
44
  *.rbc
36
45
  /.config
@@ -67,13 +76,23 @@ build/
67
76
 
68
77
  # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
69
78
  .rvmrc
79
+ #
70
80
  # END Ruby.gitignore
81
+ ##############################################################################
82
+
83
+ ##############################################################################
71
84
  # BEGIN Gem.gitignore
85
+ #
72
86
  /Gemfile.lock
73
87
  /.ruby-version
74
88
  /.ruby-gemset
89
+ #
75
90
  # END Gem.gitignore
91
+ ##############################################################################
92
+
93
+ ##############################################################################
76
94
  # BEGIN Python.gitignore
95
+ #
77
96
  # Byte-compiled / optimized / DLL files
78
97
  __pycache__/
79
98
  *.py[cod]
@@ -91,10 +110,7 @@ dist/
91
110
  downloads/
92
111
  eggs/
93
112
  .eggs/
94
-
95
- # ruby uses this!
96
- # lib/
97
-
113
+ # lib/ (needed for ruby gem)
98
114
  lib64/
99
115
  parts/
100
116
  sdist/
@@ -143,4 +159,6 @@ target/
143
159
 
144
160
  # pyenv
145
161
  .python-version
162
+ #
146
163
  # END Python.gitignore
164
+ ##############################################################################
data/exe/qb CHANGED
@@ -16,6 +16,7 @@ ROOT = (Pathname.new(__FILE__).dirname + '..').expand_path
16
16
  ROLES_DIR = ROOT + 'roles'
17
17
  ROLES = Pathname.glob(ROLES_DIR + 'qb.*').map {|path| path.basename.to_s}
18
18
  DEBUG_ARGS = ['-d', '--debug']
19
+ TMP_DIR = ROOT + 'tmp'
19
20
 
20
21
  # globals
21
22
  # =======
@@ -261,7 +262,7 @@ def main args
261
262
  {'qb_facts' => nil},
262
263
  ],
263
264
  'roles' => [
264
- 'yaegashi.blockinfile',
265
+ 'nrser.blockinfile',
265
266
  playbook_role
266
267
  ],
267
268
  }
@@ -286,7 +287,9 @@ def main args
286
287
 
287
288
  Dir.chdir ROOT do
288
289
  # install requirements
289
- Cmds.stream! "ansible-galaxy install --ignore-errors -r %s", [ROOT + 'requirements.yml']
290
+ unless (TMP_DIR + 'roles').directory?
291
+ Cmds.stream! "ansible-galaxy install --ignore-errors -r %s", [ROOT + 'requirements.yml']
292
+ end
290
293
 
291
294
  Cmds.stream! "ansible-playbook %s", [playbook_path.to_s]
292
295
  end
data/lib/qb/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module QB
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
data/requirements.yml CHANGED
@@ -1,2 +1,3 @@
1
- - src: yaegashi.blockinfile
2
- version: v0.6
1
+ - src: https://github.com/nrser/ansible-role-blockinfile.git
2
+ name: nrser.blockinfile
3
+ version: v0.6.nrser.1
@@ -18,9 +18,18 @@
18
18
 
19
19
  - name: add the gitignore
20
20
  blockinfile:
21
+ # content: "{{ ('#' * 78) + '\n' + lookup('file', './tmp/gitignore/' + gitignore_name + '.gitignore') + '\n' + ('#' * 78) }}"
21
22
  content: "{{ lookup('file', './tmp/gitignore/' + gitignore_name + '.gitignore') }}"
22
23
  dest: "{{ dir }}/.gitignore"
23
- marker: "# {mark} {{ gitignore_name }}.gitignore"
24
+ beginmarker: |
25
+ {{ '#' * 78 }}
26
+ # BEGIN {{ gitignore_name }}.gitignore
27
+ #
28
+ endmarker: |
29
+ #
30
+ # END {{ gitignore_name }}.gitignore
31
+ {{ '#' * 78 }}
32
+
24
33
  register: gitignore_added
25
34
 
26
35
  - command: git add -f .gitignore
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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - nrser
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-12 00:00:00.000000000 Z
11
+ date: 2016-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler