knife-ec-backup 2.0.0.beta.2 → 2.0.0.beta.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +127 -16
- data/lib/chef/knife/ec_backup.rb +109 -191
- data/lib/chef/knife/ec_base.rb +148 -0
- data/lib/chef/knife/ec_restore.rb +97 -210
- data/lib/chef/server.rb +38 -0
- data/lib/knife_ec_backup/version.rb +1 -1
- data/spec/chef/knife/ec_backup_spec.rb +158 -0
- data/spec/chef/knife/ec_base_spec.rb +73 -0
- data/spec/chef/knife/ec_key_base_spec.rb +2 -0
- data/spec/chef/knife/ec_key_export_spec.rb +2 -0
- data/spec/chef/knife/ec_key_import_spec.rb +2 -0
- data/spec/chef/knife/ec_restore_spec.rb +138 -0
- data/spec/chef/server_spec.rb +50 -0
- data/spec/chef/tsorter_spec.rb +9 -0
- data/spec/spec_helper.rb +6 -0
- metadata +44 -5
@@ -0,0 +1,9 @@
|
|
1
|
+
require File.expand_path(File.join(File.dirname(__FILE__), "..", "spec_helper"))
|
2
|
+
require 'chef/tsorter'
|
3
|
+
|
4
|
+
describe Chef::Tsorter do
|
5
|
+
it "returns an array of topologically sorted keys from a hash" do
|
6
|
+
h = {"a" => ["b", "c"], "b" => [], "c" => ["b"]}
|
7
|
+
expect(Chef::Tsorter.new(h).tsort).to eq(["b", "c", "a"])
|
8
|
+
end
|
9
|
+
end
|
data/spec/spec_helper.rb
ADDED
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.0.0.beta.
|
4
|
+
version: 2.0.0.beta.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Keiser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sequel
|
@@ -42,14 +42,14 @@ dependencies:
|
|
42
42
|
name: chef
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '11.8'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '11.8'
|
55
55
|
- !ruby/object:Gem::Dependency
|
@@ -80,6 +80,34 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: simplecov
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: fakefs
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
83
111
|
description: Backup and Restore of Enterprise Chef
|
84
112
|
email: jkeiser@opscode.com
|
85
113
|
executables: []
|
@@ -92,12 +120,23 @@ files:
|
|
92
120
|
- README.md
|
93
121
|
- Rakefile
|
94
122
|
- lib/chef/knife/ec_backup.rb
|
123
|
+
- lib/chef/knife/ec_base.rb
|
95
124
|
- lib/chef/knife/ec_key_base.rb
|
96
125
|
- lib/chef/knife/ec_key_export.rb
|
97
126
|
- lib/chef/knife/ec_key_import.rb
|
98
127
|
- lib/chef/knife/ec_restore.rb
|
128
|
+
- lib/chef/server.rb
|
99
129
|
- lib/chef/tsorter.rb
|
100
130
|
- lib/knife_ec_backup/version.rb
|
131
|
+
- spec/chef/knife/ec_backup_spec.rb
|
132
|
+
- spec/chef/knife/ec_base_spec.rb
|
133
|
+
- spec/chef/knife/ec_key_base_spec.rb
|
134
|
+
- spec/chef/knife/ec_key_export_spec.rb
|
135
|
+
- spec/chef/knife/ec_key_import_spec.rb
|
136
|
+
- spec/chef/knife/ec_restore_spec.rb
|
137
|
+
- spec/chef/server_spec.rb
|
138
|
+
- spec/chef/tsorter_spec.rb
|
139
|
+
- spec/spec_helper.rb
|
101
140
|
homepage: http://www.opscode.com
|
102
141
|
licenses:
|
103
142
|
- Apache 2.0
|
@@ -118,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
157
|
version: 1.3.1
|
119
158
|
requirements: []
|
120
159
|
rubyforge_project:
|
121
|
-
rubygems_version: 2.
|
160
|
+
rubygems_version: 2.4.1
|
122
161
|
signing_key:
|
123
162
|
specification_version: 4
|
124
163
|
summary: Backup and Restore of Enterprise Chef
|