Class: FortMux::Cli
- Inherits:
-
Thor
- Object
- Thor
- FortMux::Cli
- Defined in:
- bin/fortmux
Instance Method Summary collapse
Instance Method Details
#list ⇒ Object
35 36 37 38 39 40 41 42 |
# File 'bin/fortmux', line 35 def list config_files = FortMux::config_files if config_files.length == 0 puts "No config files." else config_files.sort.each {|c| puts c} end end |
#load(config_name = nil) ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'bin/fortmux', line 19 def load(config_name=nil) if config_name FortMux::Log::logger "fortmux load #{config_name} execute=#{.execute?} log=#{.log?}" FortMux::Log::off unless .log? begin FortMux::load config_name, :execute => .execute? rescue => ex puts ex. FortMux::Log::logger ex. end else help end end |