class Zold::VersionFile
Read and write .zoldata/version.
Public Class Methods
new(path, log: Log::VERBOSE)
click to toggle source
# File lib/zold/version_file.rb, line 29 def initialize(path, log: Log::VERBOSE) @path = path @log = log end
Public Instance Methods
apply(version)
click to toggle source
@todo #285:30min Replace this stub with functionality.
We need to run the script (`yield`) if the version of the script is between the saved version and the current one.
# File lib/zold/version_file.rb, line 37 def apply(version) @log.info("Version #{version} doesn't need to be applied.") end