Class: BuildrGemjar::GemjarTask::NamedGem
- Inherits:
-
Object
- Object
- BuildrGemjar::GemjarTask::NamedGem
- Includes:
- GemProperties
- Defined in:
- lib/buildr-gemjar.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#version ⇒ Object
Returns the value of attribute version.
Attributes included from GemProperties
Instance Method Summary collapse
- #dependencies ⇒ Object
-
#initialize(name, version) ⇒ NamedGem
constructor
A new instance of NamedGem.
- #install_command_elements ⇒ Object
- #kind ⇒ Object
Methods included from GemProperties
Constructor Details
#initialize(name, version) ⇒ NamedGem
Returns a new instance of NamedGem.
206 207 208 209 |
# File 'lib/buildr-gemjar.rb', line 206 def initialize(name, version) @name = name @version = version end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
204 205 206 |
# File 'lib/buildr-gemjar.rb', line 204 def name @name end |
#version ⇒ Object
Returns the value of attribute version.
204 205 206 |
# File 'lib/buildr-gemjar.rb', line 204 def version @version end |
Instance Method Details
#dependencies ⇒ Object
219 220 221 |
# File 'lib/buildr-gemjar.rb', line 219 def dependencies [] end |
#install_command_elements ⇒ Object
213 214 215 216 217 |
# File 'lib/buildr-gemjar.rb', line 213 def install_command_elements [name].tap do |elts| elts << "-v '#{version}'" if version end end |
#kind ⇒ Object
211 |
# File 'lib/buildr-gemjar.rb', line 211 def kind; :named; end |