Class: BuildrGemjar::GemjarTask::FileSourcedGem

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filename) ⇒ FileSourcedGem

Returns a new instance of FileSourcedGem.



97
98
99
# File 'lib/buildr-gemjar.rb', line 97

def initialize(filename)
  @filename = filename
end

Instance Attribute Details

#filenameObject

Returns the value of attribute filename.



95
96
97
# File 'lib/buildr-gemjar.rb', line 95

def filename
  @filename
end

Instance Method Details

#dependenciesObject



107
108
109
# File 'lib/buildr-gemjar.rb', line 107

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

#install_command_elementsObject



103
104
105
# File 'lib/buildr-gemjar.rb', line 103

def install_command_elements
  [filename]
end

#kindObject



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

def kind; :file; end