Class: Vump::VersionFile
Instance Method Summary
collapse
#file_path, #read, #relevant?, #to_stage, #write
Methods inherited from BaseModule
#initialize, #read, #relevant?, #to_stage, #write
Instance Method Details
#compose(_contents, version) ⇒ Object
17
18
19
|
# File 'lib/vump/modules/version_file.rb', line 17
def compose(_contents, version)
"#{version}\n"
end
|
#filename ⇒ Object
5
6
7
|
# File 'lib/vump/modules/version_file.rb', line 5
def filename
'VERSION'
end
|
#name ⇒ Object
9
10
11
|
# File 'lib/vump/modules/version_file.rb', line 9
def name
filename
end
|
#select(contents) ⇒ Object
13
14
15
|
# File 'lib/vump/modules/version_file.rb', line 13
def select(contents)
contents.strip
end
|