Class: BuildrGemjar::GemjarTask::FileSourcedGem
- Inherits:
-
Object
- Object
- BuildrGemjar::GemjarTask::FileSourcedGem
- Includes:
- GemProperties
- Defined in:
- lib/buildr-gemjar.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
Returns the value of attribute filename.
Attributes included from GemProperties
Instance Method Summary collapse
- #dependencies ⇒ Object
-
#initialize(filename) ⇒ FileSourcedGem
constructor
A new instance of FileSourcedGem.
- #install_command_elements ⇒ Object
- #kind ⇒ Object
- #name ⇒ Object
- #version ⇒ Object
Methods included from GemProperties
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
#filename ⇒ Object
Returns the value of attribute filename.
169 170 171 |
# File 'lib/buildr-gemjar.rb', line 169 def filename @filename end |
Instance Method Details
#dependencies ⇒ Object
181 182 183 |
# File 'lib/buildr-gemjar.rb', line 181 def dependencies [(filename if File.exist?(filename))].compact end |
#install_command_elements ⇒ Object
177 178 179 |
# File 'lib/buildr-gemjar.rb', line 177 def install_command_elements [filename] end |
#kind ⇒ Object
175 |
# File 'lib/buildr-gemjar.rb', line 175 def kind; :file; end |
#name ⇒ Object
185 186 187 |
# File 'lib/buildr-gemjar.rb', line 185 def name spec.name end |
#version ⇒ Object
189 190 191 |
# File 'lib/buildr-gemjar.rb', line 189 def version spec.version end |