Class: Munge::Cli::Commands::Server
- Inherits:
-
Object
- Object
- Munge::Cli::Commands::Server
- Defined in:
- lib/munge/cli/commands/server.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(bootloader) ⇒ Server
constructor
A new instance of Server.
Constructor Details
#initialize(bootloader) ⇒ Server
Returns a new instance of Server.
5 6 7 8 |
# File 'lib/munge/cli/commands/server.rb', line 5 def initialize(bootloader) @bootloader = bootloader @listener = listener end |
Instance Method Details
#call ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/munge/cli/commands/server.rb', line 10 def call @listener.start system("munge build") system("munge view") rescue Interrupt @listener.stop end |