knife-ec-backup 2.2.0 → 2.2.1

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: 090c5b339d237877732a3d620eb92a4466addb75
4
- data.tar.gz: 76cbbc8bb669fd36a722515b618838d3a100603b
3
+ metadata.gz: ee7a5b7811f83c09644f6f5d9e04f2a6844ce857
4
+ data.tar.gz: 76a0134c09193ac0be43a5c9fcfcc8858a259c65
5
5
  SHA512:
6
- metadata.gz: d074dfc01e8be51da10c38831d02aeff7b3aa8cd672c93540f9e53cbc161bc4c8ba5b97be95ef5a978d131aa0f5b02883a77243f7ef34bc5e77df440eab2b7ba
7
- data.tar.gz: b092806e811fa6b550b145d42c2ac55ab543281eafaf46c53f68118d1f8e498e2fd4196af48252d7a40105f7947e13638cca334a29dd56457d27501094aaa1fa
6
+ metadata.gz: 60bf796884f29c0aa5bd769a52280e2d660b99d78902dfef230db9659efea11dbd928b2ca389b67f47f5097b87d87629e0f672b7c6c1fba77c471f4bf8974dc8
7
+ data.tar.gz: 8fd94183cc56cdfb7456b0fefe7b2e3827f6f23ee39f6e28c356e70f77b9f3b9158ba7f745c0d5e6aae129614fb87c4d80aaaa9758f326cd0191d5d12dbee1ff
data/README.md CHANGED
@@ -1,4 +1,6 @@
1
1
  # knife EC backup
2
+ [![Build Status Master](https://travis-ci.org/chef/knife-ec-backup.svg?branch=master)](https://travis-ci.org/chef/knife-ec-backup)
3
+ [![Gem Version](https://badge.fury.io/rb/knife-ec-backup.svg)](https://badge.fury.io/rb/knife-ec-backup)
2
4
 
3
5
  # Description
4
6
 
@@ -32,7 +34,7 @@ the key data.
32
34
 
33
35
  ## Chef Server Install (Recommended)
34
36
 
35
- This gem is installed with chef-server-core 12.0.0 and newer.
37
+ This gem is installed with chef-server-core 12.0.0 and newer.
36
38
 
37
39
  For Private Chef 11 (or Enterprise Chef 11) you'll need to download and build
38
40
  locally to get the correct dependencies, either with `git clone` or by
@@ -26,7 +26,6 @@ class Chef
26
26
  require 'chef/chef_fs/file_pattern'
27
27
  # Work around bug in chef_fs
28
28
  require 'chef/chef_fs/command_line'
29
- require 'chef/chef_fs/file_system/chef_server/acl_entry'
30
29
  require 'chef/chef_fs/data_handler/acl_data_handler'
31
30
  require 'securerandom'
32
31
  require 'chef/chef_fs/parallelizer'
@@ -351,12 +350,13 @@ class Chef
351
350
  Chef::Log.warn "Could not find #{group.display_path} on disk. Will not restore."
352
351
  end
353
352
 
353
+ PERMISSIONS = %w{create read update delete grant}.freeze
354
354
  def put_acl(rest, url, acls)
355
355
  old_acls = rest.get(url)
356
356
  old_acls = Chef::ChefFS::DataHandler::AclDataHandler.new.normalize(old_acls, nil)
357
357
  acls = Chef::ChefFS::DataHandler::AclDataHandler.new.normalize(acls, nil)
358
358
  if acls != old_acls
359
- Chef::ChefFS::FileSystem::AclEntry::PERMISSIONS.each do |permission|
359
+ PERMISSIONS.each do |permission|
360
360
  rest.put("#{url}/#{permission}", { permission => acls[permission] })
361
361
  end
362
362
  end
@@ -1,3 +1,3 @@
1
1
  module KnifeECBackup
2
- VERSION = '2.2.0'
2
+ VERSION = '2.2.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-ec-backup
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Keiser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-27 00:00:00.000000000 Z
11
+ date: 2017-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sequel