class KyōyūIshiki::CLI
Public Class Methods
new(argv)
click to toggle source
# File lib/kyōyū_ishiki/cli.rb, line 2 def initialize(argv) @argv = argv @root = Pathname.new(argv.first || ".").realpath end
Public Instance Methods
start()
click to toggle source
# File lib/kyōyū_ishiki/cli.rb, line 7 def start Rack::Handler::Puma.run(KyōyūIshiki::App.new(@root), { Port: 9001 }) end