Class: StickyElephant::CLI

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

Instance Method Summary collapse

Instance Method Details

#runObject



3
4
5
6
7
8
# File 'lib/sticky_elephant/cli.rb', line 3

def run
  options = opts_from_cli
  conf_path = options.fetch(:configuration_path, "sticky_elephant.conf")
  config = Configuration.new(conf_path)
  Server.new(config).listen
end