Class: JstdRunner::Runner
- Inherits:
-
Object
- Object
- JstdRunner::Runner
- Defined in:
- lib/jstd-runner/runner.rb
Constant Summary collapse
- DEFAULT_OPTIONS =
{ :port => 4224, :vnc => false, :monitor_interval => 10, :browser => :firefox, :daemonize => false, :restart_at => nil, :traffic_log => nil, :jar => nil }
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize ⇒ Runner
constructor
A new instance of Runner.
- #run ⇒ Object
Constructor Details
#initialize ⇒ Runner
17 18 19 20 21 22 |
# File 'lib/jstd-runner/runner.rb', line 17 def initialize = DEFAULT_OPTIONS.dup @shutting_down = @clean_shutdown = false @server_restarting = @browser_restarting = false @server_port = [:port] end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
15 16 17 |
# File 'lib/jstd-runner/runner.rb', line 15 def end |
Instance Method Details
#run ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/jstd-runner/runner.rb', line 24 def run EM.run { configure_mailer trap_signals daemonize if [:daemonize] shutdown_hook start_server start_browser capture_browser setup_restarts if [:restart_at] } end |