Class: Oggle::CLI

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

Instance Method Summary collapse

Instance Method Details

#start(file) ⇒ Object



12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/cli.rb', line 12

def start(file)
		servers = YAML.load_file(file)
		Oggle::App.run!(
servers: servers['servers'],
interval: servers['interval'],
		port: options[:port]||4567,
run: false,
server: 'thin',
sockets: [],
root: Proc.new { File.join(File.dirname(__FILE__), "..") }
		)
end