Class: BuildrGemjar::GemjarTask::FileSourcedGem

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(filename) ⇒ FileSourcedGem

Returns a new instance of FileSourcedGem.



171
172
173
# File 'lib/buildr-gemjar.rb', line 171

def initialize(filename)
  @filename = filename
end

Instance Attribute Details

#filenameObject

Returns the value of attribute filename.



169
170
171
# File 'lib/buildr-gemjar.rb', line 169

def filename
  @filename
end

Instance Method Details

#dependenciesObject



181
182
183
# File 'lib/buildr-gemjar.rb', line 181

def dependencies
  [(filename if File.exist?(filename))].compact
end

#install_command_elementsObject



177
178
179
# File 'lib/buildr-gemjar.rb', line 177

def install_command_elements
  [filename]
end

#kindObject



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

def kind; :file; end

#nameObject



185
186
187
# File 'lib/buildr-gemjar.rb', line 185

def name
  spec.name
end

#versionObject



189
190
191
# File 'lib/buildr-gemjar.rb', line 189

def version
  spec.version
end