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.



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

def initialize(filename)
  @filename = filename
end

Instance Attribute Details

#filenameObject

Returns the value of attribute filename.



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

def filename
  @filename
end

Instance Method Details

#dependenciesObject



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

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

#install_command_elementsObject



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

def install_command_elements
  [filename]
end

#kindObject



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

def kind; :file; end