Class: JBundler::Context
- Inherits:
-
Object
- Object
- JBundler::Context
- Defined in:
- lib/jbundler/context.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
- #classpath ⇒ Object
- #gemfile_lock ⇒ Object
-
#initialize ⇒ Context
constructor
A new instance of Context.
- #jarfile ⇒ Object
- #vendor ⇒ Object
Constructor Details
Instance Attribute Details
permalink #config ⇒ Object (readonly)
Returns the value of attribute config.
11 12 13 |
# File 'lib/jbundler/context.rb', line 11 def config @config end |
Instance Method Details
permalink #classpath ⇒ Object
[View source]
25 26 27 |
# File 'lib/jbundler/context.rb', line 25 def classpath @classpath ||= JBundler::ClasspathFile.new( @config.classpath_file ) end |
permalink #gemfile_lock ⇒ Object
[View source]
29 30 31 32 |
# File 'lib/jbundler/context.rb', line 29 def gemfile_lock @gemfile_lock ||= JBundler::GemfileLock.new( jarfile, @config.gemfile_lock ) end |
permalink #jarfile ⇒ Object
[View source]
17 18 19 |
# File 'lib/jbundler/context.rb', line 17 def jarfile @jarfile ||= Maven::Tools::Jarfile.new( @config.jarfile ) end |
permalink #vendor ⇒ Object
[View source]
21 22 23 |
# File 'lib/jbundler/context.rb', line 21 def vendor @vendor ||= JBundler::Vendor.new( @config.vendor_dir ) end |