knife-sharp 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/chef/knife/sharp-align.rb +1 -1
- data/lib/chef/knife/sharp-server.rb +2 -2
- data/lib/knife-sharp.rb +1 -1
- metadata +8 -6
@@ -186,7 +186,7 @@ module KnifeSharp
|
|
186
186
|
ui.msg "- #{db.join("/")} data bag item is remote only. Dumping to #{File.join(@db_path, "#{db.join("/")}.json")}"
|
187
187
|
begin
|
188
188
|
remote_db = Chef::DataBagItem.load(db.first, db.last).raw_data
|
189
|
-
Dir.mkdir(File.join(@db_path, db.first)) unless
|
189
|
+
Dir.mkdir(File.join(@db_path, db.first)) unless File.exists?(File.join(@db_path, db.first))
|
190
190
|
File.open(File.join(@db_path, "#{db.join("/")}.json"), "w") do |file|
|
191
191
|
file.puts JSON.pretty_generate(remote_db)
|
192
192
|
end
|
@@ -37,9 +37,9 @@ module KnifeSharp
|
|
37
37
|
if !avail_confs.empty?
|
38
38
|
ui.msg "Available servers:"
|
39
39
|
avail_confs.each do |file|
|
40
|
-
name = file.match(/#{Chef::Knife::chef_config_dir}\/knife-(
|
40
|
+
name = file.match(/#{Chef::Knife::chef_config_dir}\/knife-(\w+)\.rb/)
|
41
41
|
prefix = (file == current_conf) ? ">> " : " "
|
42
|
-
ui.msg "#{prefix}#{name[
|
42
|
+
ui.msg "#{prefix}#{name[1]} (#{file})"
|
43
43
|
end
|
44
44
|
else
|
45
45
|
ui.msg "No knife server configuration file found."
|
data/lib/knife-sharp.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-sharp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2013-02-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: chef
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
22
|
+
version: 10.14.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -27,7 +27,7 @@ dependencies:
|
|
27
27
|
requirements:
|
28
28
|
- - ! '>='
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
version:
|
30
|
+
version: 10.14.0
|
31
31
|
- !ruby/object:Gem::Dependency
|
32
32
|
name: grit
|
33
33
|
requirement: !ruby/object:Gem::Requirement
|
@@ -45,7 +45,9 @@ dependencies:
|
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: 2.5.0
|
47
47
|
description: Sharpen your knife
|
48
|
-
email:
|
48
|
+
email:
|
49
|
+
- nico@rottenbytes.info
|
50
|
+
- jonathan.amiez@gmail.com
|
49
51
|
executables: []
|
50
52
|
extensions: []
|
51
53
|
extra_rdoc_files: []
|
@@ -57,7 +59,7 @@ files:
|
|
57
59
|
- lib/chef/knife/sharp-backup.rb
|
58
60
|
- lib/chef/knife/sharp-history.rb
|
59
61
|
- lib/chef/knife/sharp-server.rb
|
60
|
-
homepage:
|
62
|
+
homepage: https://github.com/Fotolia/knife-sharp
|
61
63
|
licenses: []
|
62
64
|
post_install_message:
|
63
65
|
rdoc_options: []
|