lib/goliath/goliath.rb in goliath-1.0.1 vs lib/goliath/goliath.rb in goliath-1.0.2

- old
+ new

@@ -23,10 +23,16 @@ end end alias :prod? :production? alias :dev? :development? + + # Controls whether or not the application will be run using an at_exit block. + attr_accessor :run_app_on_exit + alias_method :run_app_on_exit?, :run_app_on_exit end + # By default, we do run the application using the at_exit block. + self.run_app_on_exit = true # Retrieves the current goliath environment # # @return [String] the current environment def env