stove 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -0
- data/CHANGELOG.md +11 -0
- data/features/step_definitions/cli_steps.rb +3 -2
- data/features/support/env.rb +6 -0
- data/features/support/stove.pem +27 -0
- data/lib/stove/cli.rb +2 -20
- data/lib/stove/config.rb +1 -1
- data/lib/stove/logger.rb +22 -1
- data/lib/stove/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d59cbc25446b69f0c4ce823c8cd5cef164b7e7e
|
4
|
+
data.tar.gz: 66bb4d771096a47fd6417299b703c99a3d4bca15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fa2c9ea6c1790ea7c70c7579c4e6070340b7034e06e6c19675d815b8cc511b9165137dfcdfa3fdfcd37d67444672b68c25c4d8dec3874b8b96e953a8a94193d
|
7
|
+
data.tar.gz: af61a2bb1256eee70c27602868615d1687359294c3780aa7550639602e0cdb3622274dda5f14fd6a87150467e869285891724e264e96c9b94ec9cfe79d61b776
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
ADDED
@@ -3,8 +3,9 @@ Given /^the environment variable (.+) is "(.+)"$/ do |variable, value|
|
|
3
3
|
end
|
4
4
|
|
5
5
|
Then /^the exit status will be "(.+)"$/ do |error|
|
6
|
-
|
7
|
-
|
6
|
+
# Ruby 1.9.3 sucks
|
7
|
+
klass = error.split('::').inject(Stove) { |c, n| c.const_get(n) }
|
8
|
+
assert_exit_status(klass.exit_code)
|
8
9
|
end
|
9
10
|
|
10
11
|
When /^the CLI options are all off$/ do
|
data/features/support/env.rb
CHANGED
@@ -14,6 +14,12 @@ Aruba::InProcess.main_class = Stove::Cli
|
|
14
14
|
Aruba.process = Aruba::InProcess
|
15
15
|
|
16
16
|
Stove.set_formatter(:silent)
|
17
|
+
Stove::Config.instance_variable_set(:@instance, {
|
18
|
+
'jira_username' => 'default',
|
19
|
+
'jira_password' => 'default',
|
20
|
+
'opscode_username' => 'stove',
|
21
|
+
'opscode_pem_file' => File.expand_path(File.join(__FILE__, '..', 'stove.pem')),
|
22
|
+
})
|
17
23
|
Stove::RSpec::CommunitySite.start(port: 3390)
|
18
24
|
Stove::CommunitySite.base_uri(Stove::RSpec::CommunitySite.server_url)
|
19
25
|
Stove::CommunitySite.http_uri(Stove::RSpec::CommunitySite.server_url)
|
@@ -0,0 +1,27 @@
|
|
1
|
+
-----BEGIN RSA PRIVATE KEY-----
|
2
|
+
MIIEpQIBAAKCAQEAzdbR5SpsMUlKrQle+6KhEuP9v+ZV0zRj2SMilk8jxlLDmuZ7
|
3
|
+
j+32n+envYMuQTg+Bm2nzDqcyePGCd2jyWj+TszwxZ3IyqEEzOl93vEzUwKf9WWf
|
4
|
+
sOdG3/O7i2eJMNOzCxfjqMmld7E74d3Tq+0P5McIC4awFrGWfd5DX1QmFlygvTVH
|
5
|
+
Ke3Bmf6gEXyQRhrFDdc1sfLtBZnCC5wEzZ3hrTP/Yg3zFbJl4eoTEEbQ2MtjBa/e
|
6
|
+
Nw/JmIBiLBbuzc9Sxjbf1QY5piVU/KWKbUT2bNFTvRtzT3sU75FS8MRGKnw4pNuh
|
7
|
+
wzLxqcwLRw2TrS+KWYLbB9CD3xLDo0Pcv3S9ewIDAQABAoIBAQCIew2FA5HlRBFt
|
8
|
+
li8Sbgya9+zCFrmFZtFlofRG8YZo82ubA4OeNUw3TmRcNeSvfdkybfa6ZYqcGpiu
|
9
|
+
5fS5kRI9sYlbnnkKUaVbMN4yun8rZSwmjBFMPK0zxOnvTuEaLOQkUNy0h69dI3jv
|
10
|
+
FCRLdM37BTUCX3XWNj3wizTkumjena5tqIjvWC0YuTau74B2TQfzXcuwXRnwep6t
|
11
|
+
AGjtYyUvee2R2xbgZwA4Y8350w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uIm
|
26
|
+
dXwFj0w9pEyEneu6aa86Uac/hLK5A2vqtXRrhI2iUnRPXKadr4v0u6Y=
|
27
|
+
-----END RSA PRIVATE KEY-----
|
data/lib/stove/cli.rb
CHANGED
@@ -14,6 +14,8 @@ module Stove
|
|
14
14
|
|
15
15
|
raise Stove::InvalidVersionError unless valid_version?(options[:new_version])
|
16
16
|
|
17
|
+
Stove::Logger.set_level(options.delete(:log_level))
|
18
|
+
|
17
19
|
Stove::Cookbook.new(options).release!
|
18
20
|
@kernel.exit(0)
|
19
21
|
rescue => e
|
@@ -107,25 +109,5 @@ module Stove
|
|
107
109
|
def valid_version?(version)
|
108
110
|
version.to_s =~ /^\d+\.\d+\.\d+$/
|
109
111
|
end
|
110
|
-
|
111
|
-
# Convert a string to it's logger constant.
|
112
|
-
#
|
113
|
-
# @return [Object]
|
114
|
-
def level_to_constant(level)
|
115
|
-
case level.to_s.strip.downcase.to_sym
|
116
|
-
when :fatal
|
117
|
-
::Logger::FATAL
|
118
|
-
when :error
|
119
|
-
::Logger::ERROR
|
120
|
-
when :warn
|
121
|
-
::Logger::WARN
|
122
|
-
when :info
|
123
|
-
::Logger::INFO
|
124
|
-
when :debug
|
125
|
-
::Logger::DEBUG
|
126
|
-
else
|
127
|
-
::Logger::INFO
|
128
|
-
end
|
129
|
-
end
|
130
112
|
end
|
131
113
|
end
|
data/lib/stove/config.rb
CHANGED
data/lib/stove/logger.rb
CHANGED
@@ -4,7 +4,7 @@ module Stove
|
|
4
4
|
module Logger
|
5
5
|
class << self
|
6
6
|
def set_level(level)
|
7
|
-
logger.level = level
|
7
|
+
logger.level = level_to_constant(level)
|
8
8
|
logger
|
9
9
|
end
|
10
10
|
|
@@ -30,6 +30,27 @@ module Stove
|
|
30
30
|
logger
|
31
31
|
end
|
32
32
|
end
|
33
|
+
|
34
|
+
# Convert a string to it's logger constant.
|
35
|
+
#
|
36
|
+
# @return [Object]
|
37
|
+
def level_to_constant(level)
|
38
|
+
return level if level.kind_of?(Fixnum)
|
39
|
+
case level.to_s.strip.downcase.to_sym
|
40
|
+
when :fatal
|
41
|
+
::Logger::FATAL
|
42
|
+
when :error
|
43
|
+
::Logger::ERROR
|
44
|
+
when :warn
|
45
|
+
::Logger::WARN
|
46
|
+
when :info
|
47
|
+
::Logger::INFO
|
48
|
+
when :debug
|
49
|
+
::Logger::DEBUG
|
50
|
+
else
|
51
|
+
::Logger::INFO
|
52
|
+
end
|
53
|
+
end
|
33
54
|
end
|
34
55
|
end
|
35
56
|
end
|
data/lib/stove/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stove
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seth Vargo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -175,6 +175,7 @@ extra_rdoc_files: []
|
|
175
175
|
files:
|
176
176
|
- .gitignore
|
177
177
|
- .travis.yml
|
178
|
+
- CHANGELOG.md
|
178
179
|
- Gemfile
|
179
180
|
- LICENSE
|
180
181
|
- README.md
|
@@ -188,6 +189,7 @@ files:
|
|
188
189
|
- features/step_definitions/cookbook_steps.rb
|
189
190
|
- features/step_definitions/git_steps.rb
|
190
191
|
- features/support/env.rb
|
192
|
+
- features/support/stove.pem
|
191
193
|
- features/upload.feature
|
192
194
|
- lib/stove.rb
|
193
195
|
- lib/stove/cli.rb
|
@@ -245,6 +247,7 @@ test_files:
|
|
245
247
|
- features/step_definitions/cookbook_steps.rb
|
246
248
|
- features/step_definitions/git_steps.rb
|
247
249
|
- features/support/env.rb
|
250
|
+
- features/support/stove.pem
|
248
251
|
- features/upload.feature
|
249
252
|
- spec/support/community_site.rb
|
250
253
|
- spec/support/git.rb
|