class Gotta::Serve::CLI::Serve
Public Instance Methods
bind_address()
click to toggle source
# File lib/gotta/serve/cli/serve.rb, line 43 def bind_address options '-b', '--bind-address', default: '0.0.0.0' end
environment()
click to toggle source
# File lib/gotta/serve/cli/serve.rb, line 47 def environment options '-e', '--env', default: 'development' end
port()
click to toggle source
# File lib/gotta/serve/cli/serve.rb, line 35 def port options '-p', '--port', default: 3000 end
run!()
click to toggle source
# File lib/gotta/serve/cli/serve.rb, line 26 def run! require 'gotta/serve' Gotta::Serve.start!(self) end
scheme()
click to toggle source
# File lib/gotta/serve/cli/serve.rb, line 31 def scheme "http#{'s' if ssl}" end
ssl()
click to toggle source
# File lib/gotta/serve/cli/serve.rb, line 39 def ssl flag '--ssl', default: false end