Class: BuildrGemjar::GemjarTask::FileSourcedGem
- Inherits:
-
Object
- Object
- BuildrGemjar::GemjarTask::FileSourcedGem
- Defined in:
- lib/buildr-gemjar.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
Returns the value of attribute filename.
Instance Method Summary collapse
- #dependencies ⇒ Object
-
#initialize(filename) ⇒ FileSourcedGem
constructor
A new instance of FileSourcedGem.
- #install_command_elements ⇒ Object
- #kind ⇒ Object
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
#filename ⇒ Object
Returns the value of attribute filename.
96 97 98 |
# File 'lib/buildr-gemjar.rb', line 96 def filename @filename end |
Instance Method Details
#dependencies ⇒ Object
108 109 110 |
# File 'lib/buildr-gemjar.rb', line 108 def dependencies [(filename if File.exist?(filename))].compact end |
#install_command_elements ⇒ Object
104 105 106 |
# File 'lib/buildr-gemjar.rb', line 104 def install_command_elements [filename] end |
#kind ⇒ Object
102 |
# File 'lib/buildr-gemjar.rb', line 102 def kind; :file; end |