knife-sharp 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/sharp-config.yml +3 -0
- data/lib/chef/knife/sharp-align.rb +13 -1
- data/lib/knife-sharp.rb +1 -1
- metadata +43 -62
data/ext/sharp-config.yml
CHANGED
@@ -116,7 +116,19 @@ module KnifeSharp
|
|
116
116
|
bumped = Array.new
|
117
117
|
env = Chef::Environment.load(@environment)
|
118
118
|
updated_versions.each_pair do |cb,version|
|
119
|
-
answer =
|
119
|
+
answer = nil
|
120
|
+
|
121
|
+
if @cfg[@chef_server]
|
122
|
+
if @cfg[@chef_server]["ignore_cookbooks"]
|
123
|
+
if @cfg[@chef_server]["ignore_cookbooks"].include?(cb)
|
124
|
+
answer = "N"
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
if answer.nil?
|
130
|
+
answer = ui.ask_question("Update #{cb} cookbook item on server ? Y/N/(A)ll/(Q)uit ", :default => "N").upcase unless all
|
131
|
+
end
|
120
132
|
|
121
133
|
if answer == "A"
|
122
134
|
all = true
|
data/lib/knife-sharp.rb
CHANGED
metadata
CHANGED
@@ -1,66 +1,57 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-sharp
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.7
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
- 6
|
10
|
-
version: 0.1.6
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Nicolas Szalay
|
14
9
|
- Jonathan Amiez
|
15
10
|
autorequire:
|
16
11
|
bindir: bin
|
17
12
|
cert_chain: []
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
- !ruby/object:Gem::Dependency
|
13
|
+
date: 2013-02-27 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
22
16
|
name: chef
|
23
|
-
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
25
18
|
none: false
|
26
|
-
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
hash: 119
|
30
|
-
segments:
|
31
|
-
- 10
|
32
|
-
- 14
|
33
|
-
- 0
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
34
22
|
version: 10.14.0
|
35
23
|
type: :runtime
|
36
|
-
version_requirements: *id001
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: grit
|
39
24
|
prerelease: false
|
40
|
-
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ! '>='
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: 10.14.0
|
31
|
+
- !ruby/object:Gem::Dependency
|
32
|
+
name: grit
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
41
34
|
none: false
|
42
|
-
requirements:
|
35
|
+
requirements:
|
43
36
|
- - ~>
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
hash: 27
|
46
|
-
segments:
|
47
|
-
- 2
|
48
|
-
- 5
|
49
|
-
- 0
|
37
|
+
- !ruby/object:Gem::Version
|
50
38
|
version: 2.5.0
|
51
39
|
type: :runtime
|
52
|
-
|
40
|
+
prerelease: false
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ~>
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 2.5.0
|
53
47
|
description: Sharpen your knife
|
54
|
-
email:
|
48
|
+
email:
|
55
49
|
- nico@rottenbytes.info
|
56
50
|
- jonathan.amiez@gmail.com
|
57
51
|
executables: []
|
58
|
-
|
59
52
|
extensions: []
|
60
|
-
|
61
53
|
extra_rdoc_files: []
|
62
|
-
|
63
|
-
files:
|
54
|
+
files:
|
64
55
|
- README.md
|
65
56
|
- ext/sharp-config.yml
|
66
57
|
- lib/knife-sharp.rb
|
@@ -70,36 +61,26 @@ files:
|
|
70
61
|
- lib/chef/knife/sharp-server.rb
|
71
62
|
homepage: https://github.com/Fotolia/knife-sharp
|
72
63
|
licenses: []
|
73
|
-
|
74
64
|
post_install_message:
|
75
65
|
rdoc_options: []
|
76
|
-
|
77
|
-
require_paths:
|
66
|
+
require_paths:
|
78
67
|
- lib
|
79
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
68
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
80
69
|
none: false
|
81
|
-
requirements:
|
82
|
-
- -
|
83
|
-
- !ruby/object:Gem::Version
|
84
|
-
|
85
|
-
|
86
|
-
- 0
|
87
|
-
version: "0"
|
88
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - ! '>='
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '0'
|
74
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
75
|
none: false
|
90
|
-
requirements:
|
91
|
-
- -
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
|
94
|
-
segments:
|
95
|
-
- 0
|
96
|
-
version: "0"
|
76
|
+
requirements:
|
77
|
+
- - ! '>='
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0'
|
97
80
|
requirements: []
|
98
|
-
|
99
81
|
rubyforge_project:
|
100
|
-
rubygems_version: 1.8.
|
82
|
+
rubygems_version: 1.8.25
|
101
83
|
signing_key:
|
102
84
|
specification_version: 3
|
103
85
|
summary: Knife sharp plugin
|
104
86
|
test_files: []
|
105
|
-
|