qb 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/qb/version.rb +1 -1
- data/roles/qb.project/tasks/main.yml +2 -0
- data/roles/qb.role/defaults/main.yml +22 -1
- data/roles/qb.role/meta/main.yml +15 -2
- data/roles/qb.role/meta/qb.yml +18 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9b701329529f078964cbe45228492216b6bb764
|
4
|
+
data.tar.gz: be835698732b5193d85befda5a6ae70545a51d51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b00d86a4b0c90a8d0e94b6489327aa90a141b00be216549660474f9360d7d75d92045b479f17579f6e91dd80f44f30426d54bf591cc4144e5587ac43edc0834
|
7
|
+
data.tar.gz: ac43dde773b412798bc80e84c412a057e56bfdfd55ecc27d343225ad0533a189aff389e9edba3f908187636d30b8eecf4c80589e9b01bedfc3535d9488eb00f5
|
data/lib/qb/version.rb
CHANGED
@@ -21,12 +21,14 @@
|
|
21
21
|
- name: create tmp directory
|
22
22
|
git_mkdir:
|
23
23
|
path: "{{ qb_dir }}/tmp"
|
24
|
+
when: project_tmp
|
24
25
|
|
25
26
|
- name: ignore tmp dir in git
|
26
27
|
lineinfile:
|
27
28
|
line: /tmp
|
28
29
|
dest: "{{ qb_dir }}/.gitignore"
|
29
30
|
register: ignore_tmp
|
31
|
+
when: project_tmp
|
30
32
|
|
31
33
|
# readme
|
32
34
|
# ======
|
@@ -7,4 +7,25 @@ role_handlers: false
|
|
7
7
|
role_meta: true
|
8
8
|
role_tasks: true
|
9
9
|
role_templates: false
|
10
|
-
role_vars: false
|
10
|
+
role_vars: false
|
11
|
+
|
12
|
+
# switch to init a project repo for the role
|
13
|
+
role_project: false
|
14
|
+
|
15
|
+
# owner if the repo, which defauts to the `GITHUB_USER` env var
|
16
|
+
role_project_owner: "{{ ansible_env.GITHUB_USER }}"
|
17
|
+
|
18
|
+
# the name of the project repo, which defaults to "ansible-<role-name>"
|
19
|
+
role_project_name: "ansible-{{ role_role_name }}"
|
20
|
+
|
21
|
+
# rest of the project variables default to false except readme
|
22
|
+
role_project_bin: false
|
23
|
+
role_project_dev: false
|
24
|
+
role_project_dev_bin: false
|
25
|
+
role_project_setup: false
|
26
|
+
role_project_scratch: false
|
27
|
+
role_project_tmp: false
|
28
|
+
role_project_readme: true
|
29
|
+
role_project_hub: false
|
30
|
+
role_project_private: false
|
31
|
+
role_project_force: false
|
data/roles/qb.role/meta/main.yml
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
---
|
2
2
|
# meta file for qb.role
|
3
3
|
|
4
|
-
dependencies:
|
5
|
-
|
4
|
+
dependencies:
|
5
|
+
- role: qb.project
|
6
|
+
project_owner: "{{ role_project_owner }}"
|
7
|
+
project_name: "{{ role_project_name }}"
|
8
|
+
project_bin: "{{ role_project_bin }}"
|
9
|
+
project_dev: "{{ role_project_dev }}"
|
10
|
+
project_dev_bin: "{{ role_project_dev_bin }}"
|
11
|
+
project_setup: "{{ role_project_setup }}"
|
12
|
+
project_scratch: "{{ role_project_scratch }}"
|
13
|
+
project_tmp: "{{ role_project_tmp }}"
|
14
|
+
project_readme: "{{ role_project_readme }}"
|
15
|
+
project_hub: "{{ role_project_hub }}"
|
16
|
+
project_private: "{{ role_project_private }}"
|
17
|
+
project_force: "{{ role_project_force }}"
|
18
|
+
when: role_project
|
data/roles/qb.role/meta/qb.yml
CHANGED
@@ -44,4 +44,21 @@ vars:
|
|
44
44
|
- name: vars
|
45
45
|
type: boolean
|
46
46
|
description: create vars/main.yml
|
47
|
-
short: v
|
47
|
+
short: v
|
48
|
+
|
49
|
+
- name: project
|
50
|
+
type: boolean
|
51
|
+
description: create a project repo for this role
|
52
|
+
|
53
|
+
- name: project_owner
|
54
|
+
type: string
|
55
|
+
description: the github owner of the project repo
|
56
|
+
|
57
|
+
- name: project_name
|
58
|
+
type: string
|
59
|
+
description: the github name of the project repo
|
60
|
+
|
61
|
+
- name: project_hub
|
62
|
+
type: boolean
|
63
|
+
description: switch to `hub create` the project repo
|
64
|
+
|
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.13
|
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-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|