ansible_make_role 0.7.8 → 0.7.9

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
  SHA256:
3
- metadata.gz: 8fe8e24d4a2a257d19e11b2ca0758a63a13b0508fb30275c3a070d5f69ba156b
4
- data.tar.gz: 76624736cd47411c67168b84f2557097f7bad6e32b709ceb887f80e3ba5e8181
3
+ metadata.gz: b9b8638421a96b17f3ff792b156c82ad46514a22762f772357213a1944cd09ff
4
+ data.tar.gz: 830f6c5592ef11571f0ad3092ce39cf9d6c4b79bb5bb3747e68f65ae696d2963
5
5
  SHA512:
6
- metadata.gz: b79115eb6a4a34d75f4fc949d29ac1a3b2f32d822b218e280390a7d88429cf925c4e7f30c1173d9212686e6d61b1eae3a5b1233b2284e3cbddaf125e0a25ea91
7
- data.tar.gz: '018970b8bd8de8cfe0840cc7a49cc413b6564b4e0d52232137a3385da7f5fb2640733fd2bd73669b4287446015674751ecb708d675dee971983a31af3610f634'
6
+ metadata.gz: 4f71300995da1f30d7e8fff7d05b25855b1b073de011c8e7d9a78e9714d65f7718eaa95447ff250a03b10ad6bb97525a71b1dbdfd37f91426152b2265e8fafc9
7
+ data.tar.gz: e917a67e699c2190ed5921d615b3e28bb85990da813dd19fe16ed59c29f4788f83ffd2dcc437cc053e420b14885f41f27d9c688d171638002254b7bbd23c3a2c
data/README.md CHANGED
@@ -1,21 +1,21 @@
1
1
  # ansible-make-role
2
2
 
3
3
  Pre-compiler that turns a single-file role definition into Ansible role files.
4
- The `role.yml` file combines the Ansible `main.yml` where each `main.yml` file
5
- is represented by a section (`defaults:`, `vars:`, `tasks:` etc.)
4
+ The single-file `role.yml` file combines the Ansible `main.yml` files from the
5
+ `defaults`, `vars`, `tasks`, and `meta` subdirectories with a YAML top-level
6
+ section for each file (`defaults:`, `vars:`, `tasks:` etc.)
6
7
 
7
8
  ## Usage
8
9
 
9
- ```shell
10
+ ```
10
11
  ansible-make-role -c|--clean -f|--force -g|--git -r|--roles=DIR -v|--verbose --version DIR...
11
12
  ```
12
13
 
13
14
  `ansible-make-role` expects a `role.yml` file in each of the given directories
14
15
  and generates an Ansible role in it. Existing `main.yml` files will be
15
- overwritten or removed but other files won't be touched
16
-
17
- `ansible-make-role` only generates up-to-date files unless the --force option
18
- is used
16
+ overwritten or removed but other files won't be touched. `ansible-make-role`
17
+ search subdirectories of `./roles` if no dirctories was given on the command
18
+ line
19
19
 
20
20
  ## Description
21
21
 
@@ -59,10 +59,12 @@ handlers: # Goes to handlers/main.yml"
59
59
  Clean the project by removing autogenerated files
60
60
 
61
61
  `-f, --force`
62
- Re-generate all files even if not needed
62
+ Re-generate all files even if not needed. Useful if you forgot a
63
+ `--git` option
63
64
 
64
65
  `-g, --git`
65
- Also handle per-role .gitignore files. Note that the .gitignore file will be overwritten
66
+ Also handle per-role .gitignore files. Note that existing .gitignore
67
+ files are overwritten
66
68
 
67
69
  `-r, --roles=DIR`
68
70
  Use DIR instead of default `./roles`
@@ -44,7 +44,7 @@ end
44
44
 
45
45
  role_dirs = args
46
46
  for roles_dir in roles_dirs
47
- role_dirs += Dir["#{roles_dir}/*/role.yml"].map { |f| File.dirname(f) }
47
+ role_dirs += Dir["#{roles_dir}/**/role.yml"].map { |f| File.dirname(f) }
48
48
  end
49
49
 
50
50
  if role_dirs.empty?
@@ -1,3 +1,3 @@
1
1
  module AnsibleMakeRole
2
- VERSION = "0.7.8"
2
+ VERSION = "0.7.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ansible_make_role
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.8
4
+ version: 0.7.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claus Rasmussen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-15 00:00:00.000000000 Z
11
+ date: 2020-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  - !ruby/object:Gem::Version
128
128
  version: '0'
129
129
  requirements: []
130
- rubygems_version: 3.0.1
130
+ rubygems_version: 3.0.8
131
131
  signing_key:
132
132
  specification_version: 4
133
133
  summary: Make Ansible role from make.yml file