between_meals 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/between_meals/knife.rb +6 -2
- metadata +115 -112
data/lib/between_meals/knife.rb
CHANGED
@@ -30,6 +30,8 @@ module BetweenMeals
|
|
30
30
|
@logger = opts[:logger] || nil
|
31
31
|
@user = opts[:user] || ENV['USER']
|
32
32
|
@home = opts[:home] || ENV['HOME']
|
33
|
+
# make sure people can pass in false :)
|
34
|
+
@ssl = opts[:ssl].nil? ? true : opts[:ssl]
|
33
35
|
@host = opts[:host] || 'localhost'
|
34
36
|
@port = opts[:port] || 4000
|
35
37
|
@config = opts[:config] ||
|
@@ -82,7 +84,7 @@ module BetweenMeals
|
|
82
84
|
if cookbooks.any?
|
83
85
|
cookbooks.each do |cookbook|
|
84
86
|
exec!("#{@knife} cookbook delete #{cookbook.name}" +
|
85
|
-
" --purge --yes -c #{@config}", @logger)
|
87
|
+
" --purge -a --yes -c #{@config}", @logger)
|
86
88
|
end
|
87
89
|
end
|
88
90
|
end
|
@@ -122,12 +124,14 @@ module BetweenMeals
|
|
122
124
|
end
|
123
125
|
|
124
126
|
def write_user_config
|
127
|
+
scheme = @ssl ? 'https' : 'http'
|
125
128
|
cfg = <<-BLOCK
|
126
129
|
user = ENV['USER']
|
127
130
|
log_level :info
|
128
131
|
log_location STDOUT
|
129
132
|
node_name user
|
130
|
-
chef_server_url "
|
133
|
+
chef_server_url "#{scheme}://#{@host}:#{@port}"
|
134
|
+
ssl_verify_mode :verify_none
|
131
135
|
cache_type 'BasicFile'
|
132
136
|
client_key '#{@client_key}'
|
133
137
|
cache_options(:path => File.expand_path("#{@checksum_dir}"))
|
metadata
CHANGED
@@ -1,137 +1,131 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: between_meals
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 5
|
10
|
+
version: 0.0.5
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Phil Dibowitz
|
9
14
|
- Marcin Sawicki
|
10
15
|
autorequire:
|
11
16
|
bindir: bin
|
12
17
|
cert_chain: []
|
13
|
-
|
14
|
-
|
15
|
-
|
18
|
+
|
19
|
+
date: 2015-01-05 00:00:00 Z
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
16
22
|
name: colorize
|
17
|
-
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
|
-
requirements:
|
20
|
-
- - ! '>='
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '0'
|
23
|
-
type: :runtime
|
24
23
|
prerelease: false
|
25
|
-
|
26
|
-
none: false
|
27
|
-
requirements:
|
28
|
-
- - ! '>='
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
version: '0'
|
31
|
-
- !ruby/object:Gem::Dependency
|
32
|
-
name: json
|
33
|
-
requirement: !ruby/object:Gem::Requirement
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
34
25
|
none: false
|
35
|
-
requirements:
|
36
|
-
- -
|
37
|
-
- !ruby/object:Gem::Version
|
38
|
-
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
version: "0"
|
39
33
|
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: json
|
40
37
|
prerelease: false
|
41
|
-
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
42
39
|
none: false
|
43
|
-
requirements:
|
44
|
-
- -
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
none: false
|
51
|
-
requirements:
|
52
|
-
- - ! '>='
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 3
|
44
|
+
segments:
|
45
|
+
- 0
|
46
|
+
version: "0"
|
55
47
|
type: :runtime
|
48
|
+
version_requirements: *id002
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: mixlib-shellout
|
56
51
|
prerelease: false
|
57
|
-
|
52
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
58
53
|
none: false
|
59
|
-
requirements:
|
60
|
-
- -
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
none: false
|
67
|
-
requirements:
|
68
|
-
- - ! '>='
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
version: '0'
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
hash: 3
|
58
|
+
segments:
|
59
|
+
- 0
|
60
|
+
version: "0"
|
71
61
|
type: :runtime
|
62
|
+
version_requirements: *id003
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: rugged
|
72
65
|
prerelease: false
|
73
|
-
|
66
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
74
67
|
none: false
|
75
|
-
requirements:
|
76
|
-
- -
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
|
79
|
-
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
hash: 3
|
72
|
+
segments:
|
73
|
+
- 0
|
74
|
+
version: "0"
|
75
|
+
type: :runtime
|
76
|
+
version_requirements: *id004
|
77
|
+
- !ruby/object:Gem::Dependency
|
80
78
|
name: rspec-core
|
81
|
-
requirement: !ruby/object:Gem::Requirement
|
82
|
-
none: false
|
83
|
-
requirements:
|
84
|
-
- - ! '>='
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
version: '0'
|
87
|
-
type: :development
|
88
79
|
prerelease: false
|
89
|
-
|
90
|
-
none: false
|
91
|
-
requirements:
|
92
|
-
- - ! '>='
|
93
|
-
- !ruby/object:Gem::Version
|
94
|
-
version: '0'
|
95
|
-
- !ruby/object:Gem::Dependency
|
96
|
-
name: rspec-expectations
|
97
|
-
requirement: !ruby/object:Gem::Requirement
|
80
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
98
81
|
none: false
|
99
|
-
requirements:
|
100
|
-
- -
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
|
82
|
+
requirements:
|
83
|
+
- - ">="
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
hash: 3
|
86
|
+
segments:
|
87
|
+
- 0
|
88
|
+
version: "0"
|
103
89
|
type: :development
|
90
|
+
version_requirements: *id005
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: rspec-expectations
|
104
93
|
prerelease: false
|
105
|
-
|
106
|
-
none: false
|
107
|
-
requirements:
|
108
|
-
- - ! '>='
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: rspec-mocks
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
94
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
114
95
|
none: false
|
115
|
-
requirements:
|
116
|
-
- -
|
117
|
-
- !ruby/object:Gem::Version
|
118
|
-
|
96
|
+
requirements:
|
97
|
+
- - ">="
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
hash: 3
|
100
|
+
segments:
|
101
|
+
- 0
|
102
|
+
version: "0"
|
119
103
|
type: :development
|
104
|
+
version_requirements: *id006
|
105
|
+
- !ruby/object:Gem::Dependency
|
106
|
+
name: rspec-mocks
|
120
107
|
prerelease: false
|
121
|
-
|
108
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
122
109
|
none: false
|
123
|
-
requirements:
|
124
|
-
- -
|
125
|
-
- !ruby/object:Gem::Version
|
126
|
-
|
110
|
+
requirements:
|
111
|
+
- - ">="
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
hash: 3
|
114
|
+
segments:
|
115
|
+
- 0
|
116
|
+
version: "0"
|
117
|
+
type: :development
|
118
|
+
version_requirements: *id007
|
127
119
|
description: Library for calculation Chef differences between revisions
|
128
120
|
email:
|
129
121
|
executables: []
|
122
|
+
|
130
123
|
extensions: []
|
131
|
-
|
124
|
+
|
125
|
+
extra_rdoc_files:
|
132
126
|
- README.md
|
133
127
|
- LICENSE
|
134
|
-
files:
|
128
|
+
files:
|
135
129
|
- README.md
|
136
130
|
- LICENSE
|
137
131
|
- lib/between_meals/changeset.rb
|
@@ -145,28 +139,37 @@ files:
|
|
145
139
|
- lib/between_meals/repo/svn.rb
|
146
140
|
- lib/between_meals/repo/git.rb
|
147
141
|
homepage: https://github.com/facebook/between-meals
|
148
|
-
licenses:
|
142
|
+
licenses:
|
149
143
|
- Apache
|
150
144
|
post_install_message:
|
151
145
|
rdoc_options: []
|
152
|
-
|
146
|
+
|
147
|
+
require_paths:
|
153
148
|
- lib
|
154
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
149
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
155
150
|
none: false
|
156
|
-
requirements:
|
157
|
-
- -
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
|
160
|
-
|
151
|
+
requirements:
|
152
|
+
- - ">="
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
hash: 3
|
155
|
+
segments:
|
156
|
+
- 0
|
157
|
+
version: "0"
|
158
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
161
159
|
none: false
|
162
|
-
requirements:
|
163
|
-
- -
|
164
|
-
- !ruby/object:Gem::Version
|
165
|
-
|
160
|
+
requirements:
|
161
|
+
- - ">="
|
162
|
+
- !ruby/object:Gem::Version
|
163
|
+
hash: 3
|
164
|
+
segments:
|
165
|
+
- 0
|
166
|
+
version: "0"
|
166
167
|
requirements: []
|
168
|
+
|
167
169
|
rubyforge_project:
|
168
|
-
rubygems_version: 1.8.
|
170
|
+
rubygems_version: 1.8.5
|
169
171
|
signing_key:
|
170
172
|
specification_version: 3
|
171
173
|
summary: Between Meals
|
172
174
|
test_files: []
|
175
|
+
|