lib/munge/cli/commands/view.rb in munge-0.11.1 vs lib/munge/cli/commands/view.rb in munge-0.12.0
- old
+ new
@@ -25,10 +25,15 @@
require "rack"
module Munge
module Cli
module Commands
+ # This class starts up a webserver useful for development
class View
+ # @param bootloader [Munge::Bootloader]
+ # @param host [String]
+ # @param port [Numeric]
+ # @param build_root [String, nil]
def initialize(bootloader, host:, port:, build_root: nil)
config = bootloader.config
@host = host
@port = port
root = File.expand_path(build_root || config[:output], bootloader.root_path)