ringleader 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/ringleader/config.rb +3 -2
- data/lib/ringleader/version.rb +1 -1
- data/spec/ringleader/config_spec.rb +0 -8
- metadata +4 -4
data/lib/ringleader/config.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
module Ringleader
|
2
2
|
class Config
|
3
|
+
include Celluloid::Logger
|
3
4
|
|
4
5
|
DEFAULT_IDLE_TIMEOUT = 1800
|
5
6
|
DEFAULT_STARTUP_TIMEOUT = 30
|
@@ -41,8 +42,8 @@ module Ringleader
|
|
41
42
|
options["env"] ||= {}
|
42
43
|
|
43
44
|
options["dir"] = File.expand_path options["dir"]
|
44
|
-
unless File.directory?(options["dir"])
|
45
|
-
|
45
|
+
unless File.directory?(options["dir"]) || options["disabled"]
|
46
|
+
warn "#{options["dir"]} does not exist!"
|
46
47
|
end
|
47
48
|
|
48
49
|
if command = options.delete("rvm")
|
data/lib/ringleader/version.rb
CHANGED
@@ -76,14 +76,6 @@ describe Ringleader::Config do
|
|
76
76
|
end
|
77
77
|
end
|
78
78
|
|
79
|
-
context "when the target directory doesn't exist" do
|
80
|
-
it "raises an exception" do
|
81
|
-
expect {
|
82
|
-
Ringleader::Config.new("spec/fixtures/invalid_app_dir.yml").apps
|
83
|
-
}.to raise_error(/does not exist/)
|
84
|
-
end
|
85
|
-
end
|
86
|
-
|
87
79
|
context "with a config with an 'rvm' key instead of a 'command'" do
|
88
80
|
it "replaces the rvm command with a command to use rvm" do
|
89
81
|
config = Ringleader::Config.new "spec/fixtures/rvm.yml"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ringleader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-02-
|
12
|
+
date: 2013-02-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: celluloid
|
@@ -244,10 +244,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
244
244
|
version: '0'
|
245
245
|
segments:
|
246
246
|
- 0
|
247
|
-
hash: -
|
247
|
+
hash: -4231376657411258468
|
248
248
|
requirements: []
|
249
249
|
rubyforge_project:
|
250
|
-
rubygems_version: 1.8.
|
250
|
+
rubygems_version: 1.8.25
|
251
251
|
signing_key:
|
252
252
|
specification_version: 3
|
253
253
|
summary: Proxy TCP connections to an on-demand pool of configured applications
|