lib/wire/model/state.rb
# save current state to statefile (within project target dir)
save current state to statefile (within project target dir)
save current state to statefile ( within project target dir )
def save
      unless @changed
        $log.debug 'Not saving state, nothing changed'
        return
      end
      statefile_filename = state_filename
      $log.debug "Saving state to #{statefile_filename}"
      File.open(statefile_filename, 'w') do |file|
        file.puts state.to_yaml
      end
      @changed = false
    end
def save unless @changed $log . debug 'Not saving state, nothing changed' return end statefile_filename = state_filename $log . debug "Saving state to #{statefile_filename}" File . open ( statefile_filename , 'w' ) do | file | file . puts state . to_yaml end @changed = false end
save current state to statefile (within project target dir)
save current state to statefile ( within project target dir )