class Nightwatch::CommandLine
Public Instance Methods
start()
click to toggle source
# File lib/nightwatch/web/cli.rb, line 11 def start if options[:version] version return end bind = options[:bind] || '0.0.0.0' port = options[:port] || 3000 server = Nightwatch::Server server.set :bind, bind server.set :port, port server.run! end
version()
click to toggle source
# File lib/nightwatch/web/cli.rb, line 27 def version puts "Nightwatch #{Nightwatch::VERSION}" end