lib/eye/dsl/opts.rb in reel-eye-0.5.1 vs lib/eye/dsl/opts.rb in reel-eye-0.5.2
- old
+ new
@@ -6,11 +6,11 @@
BOOL_OPTIONS = [ :daemonize, :keep_alive, :auto_start, :stop_on_delete, :clear_pid ]
create_options_methods(BOOL_OPTIONS, [TrueClass, FalseClass])
INTERVAL_OPTIONS = [ :check_alive_period, :start_timeout, :restart_timeout, :stop_timeout, :start_grace,
- :restart_grace, :stop_grace, :childs_update_period, :restore_in ]
+ :restart_grace, :stop_grace, :children_update_period, :restore_in ]
create_options_methods(INTERVAL_OPTIONS, [Fixnum, Float])
create_options_methods([:environment], Hash)
create_options_methods([:stop_signals], Array)
create_options_methods([:umask], Fixnum)
@@ -107,9 +107,13 @@
super
end
def daemonize!
set_daemonize true
+ end
+
+ def clear_bundler_env
+ env('GEM_PATH' => nil, 'GEM_HOME' => nil, 'RUBYOPT' => nil, 'BUNDLE_BIN_PATH' => nil, 'BUNDLE_GEMFILE' => nil)
end
def scoped(&block)
h = self.class.new(self.name, self)
h.instance_eval(&block)