Class: Zold::VersionFile

Inherits:
Object
  • Object
show all
Defined in:
lib/zold/version_file.rb

Overview

Read and write .zoldata/version.

Instance Method Summary collapse

Constructor Details

#initialize(path, log: Loog::NULL) ⇒ VersionFile

Returns a new instance of VersionFile.



12
13
14
15
# File 'lib/zold/version_file.rb', line 12

def initialize(path, log: Loog::NULL)
  @path = path
  @log = log
end

Instance Method Details

#apply(version) ⇒ Object



20
21
22
# File 'lib/zold/version_file.rb', line 20

def apply(version)
  @log.info("Version #{version} doesn't need to be applied.")
end