qb 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +15 -5
- data/bin/qb +4 -0
- data/{dev/bin → bin}/ungem +0 -0
- data/dev/ansible.cfg +4 -0
- data/dev/hosts +2 -0
- data/dev/requirements.yml +12 -0
- data/dev/setup.yml +29 -46
- data/lib/qb/version.rb +1 -1
- data/library/git_mkdir.py +1 -1
- data/roles/qb.gitignore/.qb-options.yml +3 -0
- data/roles/qb.gitignore/meta/main.yml +2 -0
- data/roles/qb.gitignore/tasks/main.yml +8 -16
- data/roles/qb.gitignore/vars/main.yml +3 -0
- data/roles/qb.project/.qb-options.yml +1 -0
- data/roles/qb.project/files/ansible.cfg +4 -0
- data/roles/qb.project/files/hosts +2 -0
- data/roles/qb.project/files/requirements.yml +12 -0
- data/roles/qb.project/tasks/main.yml +1 -34
- data/roles/qb.project/tasks/setup.yml +36 -0
- data/roles/qb.project/templates/setup.yml.j2 +23 -38
- metadata +14 -5
- data/dev/bin/.gitkeep +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f31d035d37daaec64eee867197075bf51e2d8c02
|
4
|
+
data.tar.gz: c59ffaac71ca22f403d038fa0d75c9077edfc799
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 803936e367ab858f49cbabc29772e8a44627bc881ce115cb1c178036e6f5ff47f435049e31e7a48db3d4d6e2fff7666221ca4b45608f3fe9204c128c90afd930
|
7
|
+
data.tar.gz: bbbfc4fb4bb756e6658cb86bde22c7f8149709444c06db5c2abdc8a7599285c2bc0bcfbd06ec403c2e3c4493f33dd0aa4a84180b4dbd503fa3ff5d31c6964faa
|
data/.gitignore
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
/.qb-playbook.yml
|
3
3
|
|
4
4
|
/dev/repos
|
5
|
-
/dev/ref/
|
5
|
+
/dev/ref/tmp
|
6
6
|
/tmp
|
7
7
|
|
8
8
|
##############################################################################
|
@@ -12,9 +12,8 @@
|
|
12
12
|
.AppleDouble
|
13
13
|
.LSOverride
|
14
14
|
|
15
|
-
# Icon must end with two
|
16
|
-
Icon
|
17
|
-
|
15
|
+
# Icon must end with two
|
16
|
+
Icon
|
18
17
|
|
19
18
|
# Thumbnails
|
20
19
|
._*
|
@@ -56,6 +55,17 @@ Temporary Items
|
|
56
55
|
.dat*
|
57
56
|
.repl_history
|
58
57
|
build/
|
58
|
+
*.bridgesupport
|
59
|
+
build-iPhoneOS/
|
60
|
+
build-iPhoneSimulator/
|
61
|
+
|
62
|
+
## Specific to RubyMotion (use of CocoaPods):
|
63
|
+
#
|
64
|
+
# We recommend against adding the Pods directory to your .gitignore. However
|
65
|
+
# you should judge for yourself, the pros and cons are mentioned at:
|
66
|
+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
67
|
+
#
|
68
|
+
# vendor/Pods/
|
59
69
|
|
60
70
|
## Documentation cache and generated files:
|
61
71
|
/.yardoc/
|
@@ -64,7 +74,7 @@ build/
|
|
64
74
|
/rdoc/
|
65
75
|
|
66
76
|
## Environment normalization:
|
67
|
-
|
77
|
+
.bundle/
|
68
78
|
/vendor/bundle
|
69
79
|
/lib/bundler/man/
|
70
80
|
|
data/bin/qb
ADDED
data/{dev/bin → bin}/ungem
RENAMED
File without changes
|
data/dev/ansible.cfg
ADDED
data/dev/hosts
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
- name: nrser.nodenv
|
2
|
+
src: https://github.com/nrser/ansible-nrser.nodenv.git
|
3
|
+
version: v0.1.0
|
4
|
+
- name: nrser.rbenv_gem
|
5
|
+
src: https://github.com/nrser/ansible-nrser.rbenv_gem.git
|
6
|
+
version: v0.1.1
|
7
|
+
- name: nrser.rbenv
|
8
|
+
src: https://github.com/nrser/ansible-nrser.rbenv.git
|
9
|
+
version: v0.1.0
|
10
|
+
- name: nrser.dev_setup
|
11
|
+
src: https://github.com/nrser/ansible-nrser.dev_setup.git
|
12
|
+
version: v0.1.1
|
data/dev/setup.yml
CHANGED
@@ -4,55 +4,38 @@
|
|
4
4
|
|
5
5
|
hosts: localhost
|
6
6
|
|
7
|
-
|
7
|
+
pre_tasks:
|
8
|
+
- name: load dev_setup facts
|
9
|
+
dev_setup_facts:
|
10
|
+
|
11
|
+
roles:
|
12
|
+
- role: nrser.dev_setup
|
8
13
|
# repos that are co-developed
|
9
|
-
|
14
|
+
dev_setup_repos:
|
10
15
|
- owner: nrser
|
11
16
|
name: gitignore
|
12
|
-
|
13
|
-
# repos that are used for reference only
|
14
|
-
ref_repos:
|
15
|
-
- owner: ansible
|
16
|
-
name: ansible
|
17
|
-
version: v1.9.4-1
|
18
|
-
dir_name: ansible-v1.9.4
|
19
|
-
depth: 1
|
20
|
-
|
17
|
+
|
21
18
|
- owner: nrser
|
22
|
-
name: nrser.
|
23
|
-
|
24
|
-
- owner: beiarea
|
25
|
-
name: workstations
|
26
|
-
|
27
|
-
- owner: nrser
|
28
|
-
name: ansible-nrser.profile
|
19
|
+
name: ansible-nrser.dev_setup
|
29
20
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
21
|
+
# sources that are used for reference only
|
22
|
+
dev_setup_refs:
|
23
|
+
github:
|
24
|
+
- owner: ansible
|
25
|
+
name: ansible
|
26
|
+
version: v1.9.4-1
|
27
|
+
dir_name: ansible-v1.9.4
|
28
|
+
depth: 1
|
29
|
+
|
30
|
+
- owner: nrser
|
31
|
+
name: nrser.env
|
32
|
+
|
33
|
+
- owner: beiarea
|
34
|
+
name: workstations
|
35
|
+
|
36
|
+
- owner: nrser
|
37
|
+
name: ansible-nrser.profile
|
38
|
+
|
39
|
+
archive: []
|
38
40
|
|
39
|
-
|
40
|
-
stat:
|
41
|
-
path: "./repos/{{ item.dir_name | default(item.name) }}/Gemfile"
|
42
|
-
with_items: repos
|
43
|
-
register: gemfile_stats
|
44
|
-
|
45
|
-
- name: install bunlde for any that have a Gemfile
|
46
|
-
shell: bash -lc "bundle install --path=./.bundle"
|
47
|
-
args:
|
48
|
-
chdir: "{{ item.invocation.module_complex_args.path | dirname }}"
|
49
|
-
when: item.stat.exists
|
50
|
-
with_items: gemfile_stats.results | default([])
|
51
|
-
|
52
|
-
- name: clone ref repos
|
53
|
-
git:
|
54
|
-
repo: git@github.com:{{ item.owner }}/{{ item.name }}.git
|
55
|
-
dest: ./ref/repos/{{ item.dir_name | default(item.name) }}
|
56
|
-
version: "{{ item.version | default('HEAD') }}"
|
57
|
-
depth: "{{ item.depth | default(0) }}"
|
58
|
-
with_items: ref_repos
|
41
|
+
tasks:
|
data/lib/qb/version.rb
CHANGED
data/library/git_mkdir.py
CHANGED
@@ -55,7 +55,7 @@ def main():
|
|
55
55
|
if (not os.path.exists(keep_path)) and (not contians_files(path)):
|
56
56
|
open(os.path.join(path, '.gitkeep'), 'a').close()
|
57
57
|
with cd(path):
|
58
|
-
subprocess.check_call(['git', 'add', '.gitkeep'])
|
58
|
+
subprocess.check_call(['git', 'add', '-f', '.gitkeep'])
|
59
59
|
changed = True
|
60
60
|
|
61
61
|
module.exit_json(
|
@@ -1,25 +1,26 @@
|
|
1
1
|
---
|
2
2
|
# tasks file for qb.gitignore
|
3
3
|
|
4
|
+
- set_fact:
|
5
|
+
gitignore_repo: ./tmp/gitignore-{{ gitignore_version }}
|
6
|
+
|
4
7
|
- name: check out nrser/gitignore
|
5
8
|
git:
|
6
9
|
repo: git@github.com:nrser/gitignore.git
|
7
|
-
dest:
|
8
|
-
version:
|
10
|
+
dest: "{{ gitignore_repo}}"
|
11
|
+
version: v{{ gitignore_version }}
|
9
12
|
depth: 1
|
10
|
-
update:
|
13
|
+
update: false
|
11
14
|
|
12
15
|
- name: create .gitignore
|
13
16
|
copy:
|
14
17
|
content: ''
|
15
18
|
dest: "{{ dir }}/.gitignore"
|
16
19
|
force: false
|
17
|
-
register: gitignore_created
|
18
20
|
|
19
|
-
- name:
|
21
|
+
- name: modify .gitignore
|
20
22
|
blockinfile:
|
21
|
-
|
22
|
-
content: "{{ lookup('file', './tmp/gitignore/' + gitignore_name + '.gitignore') }}"
|
23
|
+
content: "{{ lookup('file', gitignore_repo + '/' + gitignore_name + '.gitignore') }}"
|
23
24
|
dest: "{{ dir }}/.gitignore"
|
24
25
|
beginmarker: |
|
25
26
|
{{ '#' * 78 }}
|
@@ -29,12 +30,3 @@
|
|
29
30
|
#
|
30
31
|
# END {{ gitignore_name }}.gitignore
|
31
32
|
{{ '#' * 78 }}
|
32
|
-
|
33
|
-
register: gitignore_added
|
34
|
-
|
35
|
-
- command: git add -f .gitignore
|
36
|
-
args:
|
37
|
-
chdir: "{{ dir }}"
|
38
|
-
when: >
|
39
|
-
gitignore_created.changed or
|
40
|
-
gitignore_added.changed
|
@@ -0,0 +1,12 @@
|
|
1
|
+
- name: nrser.nodenv
|
2
|
+
src: https://github.com/nrser/ansible-nrser.nodenv.git
|
3
|
+
version: v0.1.0
|
4
|
+
- name: nrser.rbenv_gem
|
5
|
+
src: https://github.com/nrser/ansible-nrser.rbenv_gem.git
|
6
|
+
version: v0.1.1
|
7
|
+
- name: nrser.rbenv
|
8
|
+
src: https://github.com/nrser/ansible-nrser.rbenv.git
|
9
|
+
version: v0.1.0
|
10
|
+
- name: nrser.dev_setup
|
11
|
+
src: https://github.com/nrser/ansible-nrser.dev_setup.git
|
12
|
+
version: v0.1.1
|
@@ -20,30 +20,8 @@
|
|
20
20
|
# setup
|
21
21
|
# =====
|
22
22
|
|
23
|
-
-
|
24
|
-
template:
|
25
|
-
src: setup.yml.j2
|
26
|
-
dest: "{{ dir }}/dev/setup.yml"
|
27
|
-
force: false
|
23
|
+
- include: setup.yml
|
28
24
|
when: project_setup
|
29
|
-
register: setup_yml
|
30
|
-
|
31
|
-
- command: git add dev/setup.yml
|
32
|
-
args:
|
33
|
-
chdir: "{{ dir }}"
|
34
|
-
when: setup_yml.changed
|
35
|
-
|
36
|
-
- name: ignore /dev/repos in git
|
37
|
-
lineinfile:
|
38
|
-
line: /dev/repos
|
39
|
-
dest: "{{ dir }}/.gitignore"
|
40
|
-
register: ignore_dev_repos
|
41
|
-
|
42
|
-
- name: ignore /dev/ref/repos in git
|
43
|
-
lineinfile:
|
44
|
-
line: /dev/ref/repos
|
45
|
-
dest: "{{ dir }}/.gitignore"
|
46
|
-
register: ignore_dev_ref_repos
|
47
25
|
|
48
26
|
# scratch
|
49
27
|
# =======
|
@@ -89,14 +67,3 @@
|
|
89
67
|
args:
|
90
68
|
chdir: "{{ dir }}"
|
91
69
|
when: project_hub
|
92
|
-
|
93
|
-
# postamble
|
94
|
-
# =========
|
95
|
-
|
96
|
-
- command: git add .gitignore
|
97
|
-
args:
|
98
|
-
chdir: "{{ dir }}"
|
99
|
-
when: >
|
100
|
-
ignore_dev_repos.changed or
|
101
|
-
ignore_dev_ref_repos.changed or
|
102
|
-
ignore_tmp.changed
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# setup
|
2
|
+
# =====
|
3
|
+
|
4
|
+
- name: create dev/setup.yml
|
5
|
+
template:
|
6
|
+
src: setup.yml.j2
|
7
|
+
dest: "{{ dir }}/dev/setup.yml"
|
8
|
+
force: false
|
9
|
+
|
10
|
+
- name: create dev/ansible.cfg
|
11
|
+
copy:
|
12
|
+
src: ansible.cfg
|
13
|
+
dest: "{{ dir }}/dev/ansible.cfg"
|
14
|
+
force: false
|
15
|
+
|
16
|
+
- name: create dev/hosts
|
17
|
+
copy:
|
18
|
+
src: hosts
|
19
|
+
dest: "{{ dir }}/dev/hosts"
|
20
|
+
force: false
|
21
|
+
|
22
|
+
- name: create dev/requirements.yml
|
23
|
+
copy:
|
24
|
+
src: requirements.yml
|
25
|
+
dest: "{{ dir }}/dev/requirements.yml"
|
26
|
+
force: false
|
27
|
+
|
28
|
+
- name: ignore dev/repos in git
|
29
|
+
lineinfile:
|
30
|
+
line: /dev/repos
|
31
|
+
dest: "{{ dir }}/.gitignore"
|
32
|
+
|
33
|
+
- name: ignore dev/ref/repos in git
|
34
|
+
lineinfile:
|
35
|
+
line: /dev/ref/repos
|
36
|
+
dest: "{{ dir }}/.gitignore"
|
@@ -4,49 +4,34 @@
|
|
4
4
|
{% raw %}
|
5
5
|
hosts: localhost
|
6
6
|
|
7
|
-
|
7
|
+
pre_tasks:
|
8
|
+
- name: load dev_setup facts
|
9
|
+
dev_setup_facts:
|
10
|
+
|
11
|
+
roles:
|
12
|
+
- role: nrser.dev_setup
|
8
13
|
# repos that are co-developed
|
9
|
-
|
14
|
+
dev_setup_repos: []
|
10
15
|
# example:
|
11
16
|
# - owner: nrser
|
12
17
|
# name: qb
|
13
18
|
|
14
|
-
#
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
#
|
19
|
-
|
20
|
-
|
21
|
-
|
19
|
+
# sources that are used for reference only
|
20
|
+
dev_setup_refs:
|
21
|
+
github: []
|
22
|
+
# example:
|
23
|
+
# - owner: ansible
|
24
|
+
# name: ansible
|
25
|
+
# version: v1.9.4-1
|
26
|
+
# dir_name: ansible-v1.9.4
|
27
|
+
# depth: 1
|
28
|
+
|
29
|
+
archive: []
|
30
|
+
# example:
|
31
|
+
# - url: https://storage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.23.zip
|
32
|
+
# file_name: google_appengine_1.9.23.zip
|
33
|
+
# dir_name: google_appengine_python_sdk_1.9.23
|
22
34
|
|
23
35
|
tasks:
|
24
|
-
|
25
|
-
git:
|
26
|
-
repo: git@github.com:{{ item.owner }}/{{ item.name }}.git
|
27
|
-
dest: ./repos/{{ item.dir_name | default(item.name) }}
|
28
|
-
version: "{{ item.version | default('HEAD') }}"
|
29
|
-
update: no
|
30
|
-
with_items: repos
|
31
|
-
|
32
|
-
- name: see if the repos have a Gemfile
|
33
|
-
stat:
|
34
|
-
path: "./repos/{{ item.dir_name | default(item.name) }}/Gemfile"
|
35
|
-
with_items: repos
|
36
|
-
register: gemfile_stats
|
37
|
-
|
38
|
-
- name: install bunlde for any that have a Gemfile
|
39
|
-
shell: bash -lc "bundle install --path=./.bundle"
|
40
|
-
args:
|
41
|
-
chdir: "{{ item.invocation.module_complex_args.path | dirname }}"
|
42
|
-
when: item.stat.exists
|
43
|
-
with_items: gemfile_stats.results | default([])
|
44
|
-
|
45
|
-
- name: clone ref repos
|
46
|
-
git:
|
47
|
-
repo: git@github.com:{{ item.owner }}/{{ item.name }}.git
|
48
|
-
dest: ./ref/repos/{{ item.dir_name | default(item.name) }}
|
49
|
-
version: "{{ item.version | default('HEAD') }}"
|
50
|
-
depth: "{{ item.depth | default(0) }}"
|
51
|
-
with_items: ref_repos
|
36
|
+
|
52
37
|
{% endraw %}
|
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.4
|
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-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -84,9 +84,12 @@ files:
|
|
84
84
|
- Rakefile
|
85
85
|
- ansible.cfg
|
86
86
|
- bin/console
|
87
|
+
- bin/qb
|
87
88
|
- bin/setup
|
88
|
-
-
|
89
|
-
- dev/
|
89
|
+
- bin/ungem
|
90
|
+
- dev/ansible.cfg
|
91
|
+
- dev/hosts
|
92
|
+
- dev/requirements.yml
|
90
93
|
- dev/setup.yml
|
91
94
|
- exe/qb
|
92
95
|
- lib/qb.rb
|
@@ -119,14 +122,20 @@ files:
|
|
119
122
|
- roles/qb.git_repo/defaults/main.yml
|
120
123
|
- roles/qb.git_repo/meta/main.yml
|
121
124
|
- roles/qb.git_repo/tasks/main.yml
|
125
|
+
- roles/qb.gitignore/.qb-options.yml
|
122
126
|
- roles/qb.gitignore/defaults/main.yml
|
123
127
|
- roles/qb.gitignore/meta/main.yml
|
124
128
|
- roles/qb.gitignore/tasks/main.yml
|
129
|
+
- roles/qb.gitignore/vars/main.yml
|
125
130
|
- roles/qb.project/.qb-options.yml
|
126
131
|
- roles/qb.project/defaults/main.yml
|
132
|
+
- roles/qb.project/files/ansible.cfg
|
133
|
+
- roles/qb.project/files/hosts
|
134
|
+
- roles/qb.project/files/requirements.yml
|
127
135
|
- roles/qb.project/meta/main.yml
|
128
136
|
- roles/qb.project/qb/get_dir
|
129
137
|
- roles/qb.project/tasks/main.yml
|
138
|
+
- roles/qb.project/tasks/setup.yml
|
130
139
|
- roles/qb.project/templates/.gitkeep
|
131
140
|
- roles/qb.project/templates/README.md.j2
|
132
141
|
- roles/qb.project/templates/setup.yml.j2
|
@@ -163,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
172
|
version: '0'
|
164
173
|
requirements: []
|
165
174
|
rubyforge_project:
|
166
|
-
rubygems_version: 2.
|
175
|
+
rubygems_version: 2.5.1
|
167
176
|
signing_key:
|
168
177
|
specification_version: 4
|
169
178
|
summary: qb is all about projects. named after everyone's favorite projects.
|
data/dev/bin/.gitkeep
DELETED
File without changes
|