Class: Balmora::Context::ConfigChanged
- Inherits:
-
Balmora::Context
- Object
- Balmora::Command
- Balmora::Context
- Balmora::Context::ConfigChanged
- Defined in:
- lib/balmora/context/config_changed.rb
Instance Method Summary collapse
Methods inherited from Balmora::Context
#_not, #execute, #init, #initialize, #option, #options, #verify
Methods inherited from Balmora::Command
#_execute, #execute, #init, #initialize, #option, #options
Constructor Details
This class inherits a constructor from Balmora::Context
Instance Method Details
#run ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/balmora/context/config_changed.rb', line 3 def run() if @config.old.nil?() || @config.config.nil?() return @config.config == @config.old end return JSON.generate(@config.config) != JSON.generate(@config.old) end |