Class: BuildrGemjar::GemjarTask::NamedGem

Inherits:
Object
  • Object
show all
Includes:
GemProperties
Defined in:
lib/buildr-gemjar.rb

Instance Attribute Summary collapse

Attributes included from GemProperties

#unpack_globs

Instance Method Summary collapse

Methods included from GemProperties

#install_root

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

#nameObject

Returns the value of attribute name.



204
205
206
# File 'lib/buildr-gemjar.rb', line 204

def name
  @name
end

#versionObject

Returns the value of attribute version.



204
205
206
# File 'lib/buildr-gemjar.rb', line 204

def version
  @version
end

Instance Method Details

#dependenciesObject



219
220
221
# File 'lib/buildr-gemjar.rb', line 219

def dependencies
  []
end

#install_command_elementsObject



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

#kindObject



211
# File 'lib/buildr-gemjar.rb', line 211

def kind; :named; end