knife-essentials 0.9.8 → 1.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/chef/knife/delete_essentials.rb +3 -3
- data/lib/chef/knife/deps_essentials.rb +1 -1
- data/lib/chef/knife/edit_essentials.rb +1 -1
- data/lib/chef/knife/list_essentials.rb +23 -17
- data/lib/chef/knife/show_essentials.rb +14 -7
- data/lib/chef/knife/xargs_essentials.rb +1 -1
- data/lib/chef_fs/command_line.rb +100 -84
- data/lib/chef_fs/file_system.rb +77 -35
- data/lib/chef_fs/file_system/chef_server_root_dir.rb +7 -7
- data/lib/chef_fs/file_system/cookbook_dir.rb +1 -1
- data/lib/chef_fs/file_system/rest_list_entry.rb +2 -0
- data/lib/chef_fs/knife.rb +24 -4
- data/lib/chef_fs/parallelizer.rb +127 -0
- data/lib/chef_fs/raw_request.rb +8 -4
- data/lib/chef_fs/version.rb +1 -1
- data/spec/integration/chef_repo_path_spec.rb +76 -1
- data/spec/integration/delete_spec.rb +256 -13
- data/spec/integration/deps_spec.rb +20 -20
- data/spec/integration/diff_spec.rb +47 -120
- data/spec/integration/download_spec.rb +92 -237
- data/spec/integration/list_spec.rb +114 -0
- data/spec/integration/redirection_spec.rb +49 -0
- data/spec/integration/upload_spec.rb +120 -305
- data/spec/support/file_system_support.rb +1 -1
- data/spec/support/knife_support.rb +4 -0
- metadata +7 -5
@@ -103,7 +103,7 @@ module FileSystemSupport
|
|
103
103
|
|
104
104
|
def list_should_yield_paths(fs, pattern_str, *expected_paths)
|
105
105
|
result_paths = []
|
106
|
-
ChefFS::FileSystem.list(fs, pattern(pattern_str)) { |result| result_paths << result.path }
|
106
|
+
ChefFS::FileSystem.list(fs, pattern(pattern_str)).each { |result| result_paths << result.path }
|
107
107
|
result_paths.should =~ expected_paths
|
108
108
|
end
|
109
109
|
end
|
@@ -15,6 +15,9 @@ module KnifeSupport
|
|
15
15
|
args = args[0].split(/\s+/)
|
16
16
|
end
|
17
17
|
|
18
|
+
# Make output stable
|
19
|
+
Chef::Config[:concurrency] = 1
|
20
|
+
|
18
21
|
# This is Chef::Knife.run without load_commands and load_deps--we'll
|
19
22
|
# load stuff ourselves, thank you very much
|
20
23
|
stdout = StringIO.new
|
@@ -38,6 +41,7 @@ module KnifeSupport
|
|
38
41
|
Chef::Log.use_log_devices([logger])
|
39
42
|
Chef::Log.level = ( DEBUG ? :debug : :warn )
|
40
43
|
Chef::Log::Formatter.show_time = false
|
44
|
+
|
41
45
|
instance.run
|
42
46
|
|
43
47
|
exit_code = 0
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-essentials
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.0.beta1
|
5
|
+
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- John Keiser
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-05-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: chef-zero
|
@@ -111,6 +111,7 @@ files:
|
|
111
111
|
- lib/chef_fs/file_system/rest_list_entry.rb
|
112
112
|
- lib/chef_fs/file_system.rb
|
113
113
|
- lib/chef_fs/knife.rb
|
114
|
+
- lib/chef_fs/parallelizer.rb
|
114
115
|
- lib/chef_fs/path_utils.rb
|
115
116
|
- lib/chef_fs/raw_request.rb
|
116
117
|
- lib/chef_fs/version.rb
|
@@ -127,6 +128,7 @@ files:
|
|
127
128
|
- spec/integration/download_spec.rb
|
128
129
|
- spec/integration/list_spec.rb
|
129
130
|
- spec/integration/raw_spec.rb
|
131
|
+
- spec/integration/redirection_spec.rb
|
130
132
|
- spec/integration/show_spec.rb
|
131
133
|
- spec/integration/upload_spec.rb
|
132
134
|
- spec/support/file_system_support.rb
|
@@ -150,9 +152,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
150
152
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
153
|
none: false
|
152
154
|
requirements:
|
153
|
-
- - ! '
|
155
|
+
- - ! '>'
|
154
156
|
- !ruby/object:Gem::Version
|
155
|
-
version:
|
157
|
+
version: 1.3.1
|
156
158
|
requirements: []
|
157
159
|
rubyforge_project:
|
158
160
|
rubygems_version: 1.8.23
|