File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 13
13
14
14
puts "Notifying Errplane of the deployment.."
15
15
framework_env = fetch ( :errplane_env , fetch ( :rails_env , 'production' ) )
16
- load File . join ( Dir . pwd , "config/initializers/errplane.rb" )
16
+
17
+ unless defined? ( Rails )
18
+ class Rails
19
+ @env = "production" ;
20
+ def self . env ; return self ; end
21
+ def self . env = ( env ) ; @env = env ; end
22
+ def self . to_s ; @env ; end
23
+ def self . method_missing ( m , *args , &block ) ; return m . to_s == "#{ @env } ?" ; end
24
+ end
25
+ Rails . env = framework_env
26
+ end
27
+ begin
28
+ load File . join ( Dir . pwd , "config/initializers/errplane.rb" )
29
+ rescue
30
+ puts "Couldn't find default initializer for Errplane, continuing anyhow."
31
+ end
17
32
18
33
Errplane . configuration . logger = Logger . new ( "/dev/null" )
19
34
Errplane . configuration . environment = framework_env
Original file line number Diff line number Diff line change 1
1
module Errplane
2
- VERSION = "1.0.9 "
2
+ VERSION = "1.0.10 "
3
3
end
You can’t perform that action at this time.
0 commit comments