Class: SocialStream::Release::Component::VersionFile

Inherits:
Global::VersionFile show all
Defined in:
lib/social_stream/release/component/version_file.rb

Constant Summary

Constants inherited from Global::VersionFile

Global::VersionFile::NUMBER_PATTERN, Global::VersionFile::VERSION_PATTERN

Instance Attribute Summary collapse

Attributes inherited from Global::VersionFile

#target

Instance Method Summary collapse

Methods inherited from Global::VersionFile

#bump!, #new_number, #old_number

Constructor Details

#initialize(name, target = nil) ⇒ VersionFile

Returns a new instance of VersionFile.



7
8
9
10
# File 'lib/social_stream/release/component/version_file.rb', line 7

def initialize(name, target = nil)
  @name = name
  super(target)
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/social_stream/release/component/version_file.rb', line 5

def name
  @name
end

Instance Method Details

#filenameObject



12
13
14
# File 'lib/social_stream/release/component/version_file.rb', line 12

def filename
  "#{ name }/lib/social_stream/#{ name }/version.rb"
end