deadpool 0.1.4 → 0.1.5

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.
@@ -205,10 +205,11 @@ failover_protocol_configs:
205
205
  # admin_port: 5507
206
206
 
207
207
  EOF
208
- if File.exists? environment_config_path
209
- puts "#{environment_config_path} already exists. Here's what we would have copied there."
210
- puts environment_conf
211
- else
208
+ # if File.exists? environment_config_path
209
+ # puts "#{environment_config_path} already exists. Here's what we would have copied there."
210
+ # puts environment_conf
211
+ # else
212
+ unless File.exists? environment_config_path
212
213
  File.open environment_config_path, 'w' do |file|
213
214
  file.write environment_conf
214
215
  end
@@ -25,10 +25,13 @@ module Deadpool
25
25
 
26
26
  if File.exists? environment_config_path
27
27
  user_config = YAML.load(File.read(File.join(options[:config_path], 'config/environment.yml')))
28
- return Deadpool::Helper.symbolize_keys default_config.merge(user_config).merge(options)
29
- else
30
- return default_config
28
+
29
+ if user_config
30
+ return Deadpool::Helper.symbolize_keys default_config.merge(user_config).merge(options)
31
+ end
31
32
  end
33
+
34
+ return default_config
32
35
  end
33
36
 
34
37
  def self.setup_logger(config)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deadpool
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 4
10
- version: 0.1.4
9
+ - 5
10
+ version: 0.1.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kirt Fitzpatrick
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-19 00:00:00 -08:00
18
+ date: 2011-04-04 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency