Class: Vump::VersionFile

Inherits:
BaseFileModule show all
Defined in:
lib/vump/modules/version_file.rb

Instance Method Summary collapse

Methods inherited from BaseFileModule

#file_path, #read, #relevant?, #to_stage, #write

Methods inherited from BaseModule

#initialize, #read, #relevant?, #to_stage, #write

Constructor Details

This class inherits a constructor from Vump::BaseModule

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

#filenameObject



5
6
7
# File 'lib/vump/modules/version_file.rb', line 5

def filename
  'VERSION'
end

#nameObject



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