lib/wire/model/state.rb
# load  state from statefile (within project target dir)
load  state from statefile (within project target dir)
load state from statefile ( within project target dir )
def load
      statefile_filename = state_filename
      if File.exist?(statefile_filename) &&
          File.file?(statefile_filename) &&
          File.readable?(statefile_filename)
        $log.debug "Loading state from #{statefile_filename}"
        @state = YAML.load_file(statefile_filename)
      else
        $log.debug 'No statefile found.'
        clean
      end
      @changed = false
    end
def load statefile_filename = state_filename if File . exist? ( statefile_filename ) && File . file? ( statefile_filename ) && File . readable? ( statefile_filename ) $log . debug "Loading state from #{statefile_filename}" @state = YAML . load_file ( statefile_filename ) else $log . debug 'No statefile found.' clean end @changed = false end
load  state from statefile (within project target dir)
load state from statefile ( within project target dir )