Class: Travis::Surveillance::CLI::MainCommand
- Inherits:
-
AbstractCommand
- Object
- Clamp::Command
- AbstractCommand
- Travis::Surveillance::CLI::MainCommand
- Defined in:
- lib/travis/surveillance/cli.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/travis/surveillance/cli.rb', line 92 def execute if log? Scrolls::Log.stream = File.open('/tmp/travis-surveillance.log', 'w') Travis::Surveillance.instrument_with(Travis::Surveillance::CLI::Logger.method(:log)) end surveyor = Travis::Surveillance::Surveyor.new(Travis::Surveillance::Project.new(project)) artist = Artist.new(surveyor.project) artist.draw surveyor.survey do artist.draw end end |