Method: Zmb#set_command
- Defined in:
- lib/zmb.rb
#set_command(e, instance, key, value) ⇒ Object
359 360 361 362 363 364 365 366 367 368 369 |
# File 'lib/zmb.rb', line 359 def set_command(e, instance, key, value) settings = @settings_manager.setting(instance) settings[key] = value @settings_manager.save(instance, settings) if @instances.has_key?(instance) and @instances[instance].respond_to?('update') then @instances[instance].update(key, value) end "#{key} set to #{value} for #{instance}" end |