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.
97 98 99 |
# File 'lib/buildr-gemjar.rb', line 97 def initialize(filename) @filename = filename end |
Instance Attribute Details
#filename ⇒ Object
Returns the value of attribute filename.
95 96 97 |
# File 'lib/buildr-gemjar.rb', line 95 def filename @filename end |
Instance Method Details
#dependencies ⇒ Object
107 108 109 |
# File 'lib/buildr-gemjar.rb', line 107 def dependencies [(filename if File.exist?(filename))].compact end |
#install_command_elements ⇒ Object
103 104 105 |
# File 'lib/buildr-gemjar.rb', line 103 def install_command_elements [filename] end |
#kind ⇒ Object
101 |
# File 'lib/buildr-gemjar.rb', line 101 def kind; :file; end |