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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 64d51cd82a25f0011c51eac83e5187255c9629ef
4
- data.tar.gz: 624b612aff61cdd9d43a27c3ffd07547fa4c8fe0
3
+ metadata.gz: d9b701329529f078964cbe45228492216b6bb764
4
+ data.tar.gz: be835698732b5193d85befda5a6ae70545a51d51
5
5
  SHA512:
6
- metadata.gz: aa5f181ae8ba4688b3851e7b3d5bd1e893be4291b9ef8d0c48c15399a71dcaa1f303e2fa9e7a5ff24f03067aa4ca0be0238d3f0e1f02389c9000ac0761d0b14c
7
- data.tar.gz: 4e2be94609033ce6351678bb96b970ed20a1f6b41ccaa86facdcfa3b14ce593244d952d2567f56f28d9b7ff4c7ad1e42a5347c91b071ae178bacb55a0af892d4
6
+ metadata.gz: 4b00d86a4b0c90a8d0e94b6489327aa90a141b00be216549660474f9360d7d75d92045b479f17579f6e91dd80f44f30426d54bf591cc4144e5587ac43edc0834
7
+ data.tar.gz: ac43dde773b412798bc80e84c412a057e56bfdfd55ecc27d343225ad0533a189aff389e9edba3f908187636d30b8eecf4c80589e9b01bedfc3535d9488eb00f5
@@ -1,7 +1,7 @@
1
1
  module QB
2
2
  GEM_NAME = 'qb'
3
3
 
4
- VERSION = "0.1.12"
4
+ VERSION = "0.1.13"
5
5
 
6
6
  def self.gemspec
7
7
  Gem.loaded_specs[GEM_NAME]
@@ -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
@@ -1,5 +1,18 @@
1
1
  ---
2
2
  # meta file for qb.role
3
3
 
4
- dependencies: []
5
- # - role: role-name
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
@@ -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.12
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-09-27 00:00:00.000000000 Z
11
+ date: 2016-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler