Class: SocialStream::Release::Component
- Defined in:
- lib/social_stream/release/component.rb,
lib/social_stream/release/component/version_file.rb
Defined Under Namespace
Classes: VersionFile
Constant Summary
Constants inherited from Global
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Global
Instance Method Summary collapse
-
#dirty? ⇒ Boolean
Has this component changes since the last release.
-
#initialize(name, options = {}) ⇒ Component
constructor
A new instance of Component.
Methods inherited from Global
#bump, #commit_files, #dependencies, #last_tag, #publish
Constructor Details
#initialize(name, options = {}) ⇒ Component
Returns a new instance of Component.
8 9 10 |
# File 'lib/social_stream/release/component.rb', line 8 def initialize(name, = {}) @name, @options = name, end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/social_stream/release/component.rb', line 6 def name @name end |
Instance Method Details
#dirty? ⇒ Boolean
Has this component changes since the last release
13 14 15 |
# File 'lib/social_stream/release/component.rb', line 13 def dirty? `git log #{ last_tag }.. #{ name } | wc -l`.to_i > 0 end |