Method: Command::CommandBase#load_local_settings
- Defined in:
- lib/commandbase.rb
#load_local_settings ⇒ Object
57 58 59 60 61 62 63 64 65 |
# File 'lib/commandbase.rb', line 57 def load_local_settings command_prefix = self.class.to_s.scan(/[^:]+$/)[0].downcase local_settings = Inventory.load("local_setting") local_settings.each do |name, value| if name =~ /^#{command_prefix}\.(.+)$/ @options[$1] = value end end end |