ansible_make_role 0.7.6 → 0.7.7

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: 99111d82efeeebbbfc1e737f21c142b8d032c24e32ac41d91b66d47c80a2201c
4
- data.tar.gz: e542a73b031675176749476dd06d9cc7a94ac5e5b31989321f9b5f94ad027710
3
+ metadata.gz: 2a22c1c0e2cf8ffbf1acb934620f80e2d9393364d0de685476e9ca3ef5bf9969
4
+ data.tar.gz: def88d2a7e22f7f434dd0cf317dbfb9270a6a2f2b887c92a2c513d56bc57b90c
5
5
  SHA512:
6
- metadata.gz: 0b667cfc048d8fc7e5fd661db7efbb19c21df2bf4c21e7c6e70041df2ec8045c7ae26fdd3d1beb5e09ab8a8efd1aaf30c259009940ba27498c9f99e1f560507a
7
- data.tar.gz: 2a50d6c9f5aea2dac0374580603fb55785e944097fcac765fadbd940b9a69e7242c308693600a0abf68f991c75ae23f5a70e4b188fa6e3ac73d951601f7ccade
6
+ metadata.gz: b62ac0ca21d319b957048bcbfd829681613500eb2a5efca56b2e1f35c6b350a0dc28823e499288a77394b80ac4fecfd605cf02e25b6ee5a6e11eab3e1ab7e0d4
7
+ data.tar.gz: 0b2828173981eaa825a5103ff6ff36536ce653e0c4c767fd55dfbf256c3dd5b1977c20b86d0abcae05360d1ab9dcf7f64eb0d2eead533fe8a064266d350df8a1
@@ -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}/*"].select { |d| File.directory?(d) }
47
+ role_dirs += Dir["#{roles_dir}/*/role.yml"].map { |f| File.dirname(f) }
48
48
  end
49
49
 
50
50
  if role_dirs.empty?
@@ -40,7 +40,7 @@ module AnsibleMakeRole
40
40
  def self.clean(role_dir)
41
41
  changed = false
42
42
  wrap_system_call_error {
43
- File.exists?("#{role_dir}/#{ROLE_FILE_NAME}") or raise Error "Not a role directory: #{role_dir}"
43
+ File.exists?("#{role_dir}/#{ROLE_FILE_NAME}") or raise Error.new("Not a role directory: #{role_dir}")
44
44
  for file in Dir["#{role_dir}/*/main.yml"]
45
45
  FileUtils.rm(file)
46
46
  dir = File.dirname(file)
@@ -1,3 +1,3 @@
1
1
  module AnsibleMakeRole
2
- VERSION = "0.7.6"
2
+ VERSION = "0.7.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ansible_make_role
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.6
4
+ version: 0.7.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claus Rasmussen