Class: Munge::Cli::Dispatch
- Inherits:
-
Thor
- Object
- Thor
- Munge::Cli::Dispatch
- Defined in:
- lib/munge/cli/dispatch.rb
Instance Method Summary collapse
Instance Method Details
#build ⇒ Object
13 14 15 16 17 |
# File 'lib/munge/cli/dispatch.rb', line 13 def build ENV["MUNGE_ENV"] ||= "production" Commands::Build.new(bootloader, **, build_root: ENV["BUILD_ROOT"]).call end |
#init(path) ⇒ Object
5 6 7 |
# File 'lib/munge/cli/dispatch.rb', line 5 def init(path) Commands::Init.new(path).call end |
#server ⇒ Object
29 30 31 32 33 34 |
# File 'lib/munge/cli/dispatch.rb', line 29 def server ENV["MUNGE_ENV"] ||= "development" ENV["BUILD_ROOT"] ||= "tmp/development-build" Commands::Server.new(bootloader).call end |