Class: KManager::Cli::Commands::Watch

Inherits:
BaseCommand
  • Object
show all
Defined in:
lib/k_manager/cli/watch.rb

Instance Method Summary collapse

Instance Method Details

#call(builder_folder:, boot_file:, log_level:) ⇒ Object



24
25
26
27
28
29
30
31
32
33
# File 'lib/k_manager/cli/watch.rb', line 24

def call(builder_folder:, boot_file:, log_level: , **)
  builder_folder = absolute_path(builder_folder, Dir.pwd)
  boot_file = absolute_path(boot_file, builder_folder)

  log_params(builder_folder, boot_file) if log_level == 'debug'

  # If you do a System Exit (control+c) you can go into a reboot sequence based on options
  # if the option is not set then system will exit gracefully
  while keep_watching(builder_folder, boot_file); end
end