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