module Brightbox::Config::Dirty
This module holds a very simple set of change / dirty tracking methods to keep track of when the config or any sub part (client config sections) have been changed to prevent excess saving
Public Instance Methods
Source
# File lib/brightbox-cli/config/dirty.rb, line 21 def clean_up @dirty = false end
Remove that the config is dirty because it has been saved to disk
Source
# File lib/brightbox-cli/config/dirty.rb, line 15 def dirty! @dirty = true end
Mark the config as being dirty
Source
# File lib/brightbox-cli/config/dirty.rb, line 9 def dirty? !!@dirty end
@return [Boolean] true
if config has been modified since loading