Class: Explorer::CLI::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/explorer/cli.rb

Overview

TODO: Rename

Instance Method Summary collapse

Instance Method Details

#boot(config = nil) ⇒ Object



26
27
28
29
30
# File 'lib/explorer/cli.rb', line 26

def boot(config=nil)
  servers = Servers.new hostmap: {'test.dev' => {host: 'localhost', port: 8080}}
  servers.log_watcher.add(STDOUT)
  servers.run
end

#versionObject



11
12
13
# File 'lib/explorer/cli.rb', line 11

def version
  puts Explorer::VERSION
end