Class: Stratagem::Command::Analyze
- Defined in:
- lib/stratagem/commands/analyze.rb
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#run ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/stratagem/commands/analyze.rb', line 3 def run require './config/environment' require 'stratagem/interface/browser' authentication = Stratagem::Authentication.instance while !Sinatra::Application.running puts "Waiting for Sinatra to launch" sleep 0.5 end puts "Launching your web browser" Launchy::Browser.run(authentication.url) Stratagem.wait_for_completion log "" # ensure logger sends final message puts "analysis complete. exiting." end |