sanford 0.6.4 → 0.6.5

Sign up to get free protection for your applications and to get access to all the features.
data/lib/sanford/cli.rb CHANGED
@@ -84,7 +84,7 @@ module Sanford
84
84
  end
85
85
 
86
86
  def run
87
- self.run!
87
+ self.run! false
88
88
  end
89
89
 
90
90
  def start
@@ -94,7 +94,7 @@ module Sanford
94
94
  protected
95
95
 
96
96
  def run!(daemonize = false)
97
- daemonize!(true) if daemonize
97
+ daemonize!(true) if daemonize && !ENV['SANFORD_SKIP_DAEMONIZE']
98
98
  Sanford::Server.new(@host, @server_options).tap do |server|
99
99
  log "Starting #{@host.name} server..."
100
100
 
@@ -125,9 +125,10 @@ module Sanford
125
125
  server.pause
126
126
  log "server paused"
127
127
 
128
- ENV['SANFORD_HOST'] = @host.name
129
- ENV['SANFORD_SERVER_FD'] = server.file_descriptor.to_s
130
- ENV['SANFORD_CLIENT_FDS'] = server.client_file_descriptors.join(',')
128
+ ENV['SANFORD_HOST'] = @host.name
129
+ ENV['SANFORD_SERVER_FD'] = server.file_descriptor.to_s
130
+ ENV['SANFORD_CLIENT_FDS'] = server.client_file_descriptors.join(',')
131
+ ENV['SANFORD_SKIP_DAEMONIZE'] = 'yes'
131
132
 
132
133
  log "calling exec ..."
133
134
  Dir.chdir @restart_cmd.dir
@@ -1,3 +1,3 @@
1
1
  module Sanford
2
- VERSION = "0.6.4"
2
+ VERSION = "0.6.5"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sanford
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 4
10
- version: 0.6.4
9
+ - 5
10
+ version: 0.6.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Collin Redding
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2013-03-26 00:00:00 Z
19
+ date: 2013-04-02 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  prerelease: false