knife-acl 1.0.1 → 1.0.2

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: 1337d3ac69fc8d833aea3604e1748d8af0e753b1
4
- data.tar.gz: 29021f6eea2b42661d11912bb02a077e6afffa9d
3
+ metadata.gz: 6a6cd528b66d124ccda12a6687e70adcbe6dce96
4
+ data.tar.gz: 5c4aa8c1dd51003dbebd0044cf8e220803fb8267
5
5
  SHA512:
6
- metadata.gz: c6d47c4840929291017edac53d7fa073c723db4a468f0b2ed36753da7f2e511f29033dc51a9c34d582cff3f10567ad30e53fd5d8316b0e3f966085c699ed71f4
7
- data.tar.gz: a236b0416abd32f74b3a459c865917c79eddacf4139ed51ba25145e5c5bd6098188b04619f8d26117c56094872fd01946e57e2749deca17635665380dbec39a3
6
+ metadata.gz: fb58b805be9445328c3e5540b2bcd94254553412428434856bcf7ad3211397f2bdaa59242e26c0eac0392f014e29858993a65ebabbe70f98e6dc64ba3b1f46a2
7
+ data.tar.gz: 0b08abdb3fb96a0f02fbd68331b4dbb2c0db182f0df978e86f6daf8ad4746d91ce6a67c38a0259fb3f6ad1de55634716032bd87d3b3242e71c25d34292dee997
@@ -23,6 +23,7 @@ module OpscodeAcl
23
23
  banner "knife acl add MEMBER_TYPE MEMBER_NAME OBJECT_TYPE OBJECT_NAME PERMS"
24
24
 
25
25
  deps do
26
+ require 'chef/knife/acl_base'
26
27
  include OpscodeAcl::AclBase
27
28
  end
28
29
 
@@ -20,10 +20,10 @@
20
20
  module OpscodeAcl
21
21
  module AclBase
22
22
 
23
- PERM_TYPES = %w(create read update delete grant)
24
- MEMBER_TYPES = %w(client group user)
25
- OBJECT_TYPES = %w(clients containers cookbooks data environments groups nodes roles policies policy_groups)
26
- OBJECT_NAME_SPEC = /^[\-[:alnum:]_\.]+$/
23
+ PERM_TYPES = %w(create read update delete grant) unless defined? PERM_TYPES
24
+ MEMBER_TYPES = %w(client group user) unless defined? MEMBER_TYPES
25
+ OBJECT_TYPES = %w(clients containers cookbooks data environments groups nodes roles policies policy_groups) unless defined? OBJECT_TYPES
26
+ OBJECT_NAME_SPEC = /^[\-[:alnum:]_\.]+$/ unless defined? OBJECT_NAME_SPEC
27
27
 
28
28
  def validate_object_type!(type)
29
29
  if ! OBJECT_TYPES.include?(type)
@@ -22,6 +22,7 @@ module OpscodeAcl
22
22
  banner "knife acl bulk add MEMBER_TYPE MEMBER_NAME OBJECT_TYPE REGEX PERMS"
23
23
 
24
24
  deps do
25
+ require 'chef/knife/acl_base'
25
26
  include OpscodeAcl::AclBase
26
27
  end
27
28
 
@@ -22,6 +22,7 @@ module OpscodeAcl
22
22
  banner "knife acl bulk remove MEMBER_TYPE MEMBER_NAME OBJECT_TYPE REGEX PERMS"
23
23
 
24
24
  deps do
25
+ require 'chef/knife/acl_base'
25
26
  include OpscodeAcl::AclBase
26
27
  end
27
28
 
@@ -23,6 +23,7 @@ module OpscodeAcl
23
23
  banner "knife acl remove MEMBER_TYPE MEMBER_NAME OBJECT_TYPE OBJECT_NAME PERMS"
24
24
 
25
25
  deps do
26
+ require 'chef/knife/acl_base'
26
27
  include OpscodeAcl::AclBase
27
28
  end
28
29
 
@@ -22,6 +22,7 @@ module OpscodeAcl
22
22
  banner "knife acl show OBJECT_TYPE OBJECT_NAME"
23
23
 
24
24
  deps do
25
+ require 'chef/knife/acl_base'
25
26
  include OpscodeAcl::AclBase
26
27
  end
27
28
 
@@ -23,6 +23,7 @@ module OpscodeAcl
23
23
  banner "knife group add MEMBER_TYPE MEMBER_NAME GROUP_NAME"
24
24
 
25
25
  deps do
26
+ require 'chef/knife/acl_base'
26
27
  include OpscodeAcl::AclBase
27
28
  end
28
29
 
@@ -23,6 +23,7 @@ module OpscodeAcl
23
23
  banner "knife group create GROUP_NAME"
24
24
 
25
25
  deps do
26
+ require 'chef/knife/acl_base'
26
27
  include OpscodeAcl::AclBase
27
28
  end
28
29
 
@@ -23,6 +23,7 @@ module OpscodeAcl
23
23
  banner "knife group destroy GROUP_NAME"
24
24
 
25
25
  deps do
26
+ require 'chef/knife/acl_base'
26
27
  include OpscodeAcl::AclBase
27
28
  end
28
29
 
@@ -23,6 +23,7 @@ module OpscodeAcl
23
23
  banner "knife group list"
24
24
 
25
25
  deps do
26
+ require 'chef/knife/acl_base'
26
27
  include OpscodeAcl::AclBase
27
28
  end
28
29
 
@@ -23,6 +23,7 @@ module OpscodeAcl
23
23
  banner "knife group remove MEMBER_TYPE MEMBER_NAME GROUP_NAME"
24
24
 
25
25
  deps do
26
+ require 'chef/knife/acl_base'
26
27
  include OpscodeAcl::AclBase
27
28
  end
28
29
 
@@ -23,6 +23,7 @@ module OpscodeAcl
23
23
  banner "knife group show GROUP_NAME"
24
24
 
25
25
  deps do
26
+ require 'chef/knife/acl_base'
26
27
  include OpscodeAcl::AclBase
27
28
  end
28
29
 
@@ -1,3 +1,3 @@
1
1
  module KnifeACL
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-acl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seth Falcon
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-12-18 00:00:00.000000000 Z
12
+ date: 2016-01-26 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Knife plugin to manupulate Chef server access control lists
15
15
  email: support@chef.io