Class: JBundler::Tree
- Inherits:
-
Object
- Object
- JBundler::Tree
- Defined in:
- lib/jbundler/tree.rb
Instance Method Summary collapse
-
#initialize(config) ⇒ Tree
constructor
A new instance of Tree.
- #show_it(debug = false) ⇒ Object
Constructor Details
#initialize(config) ⇒ Tree
Returns a new instance of Tree.
7 8 9 |
# File 'lib/jbundler/tree.rb', line 7 def initialize( config ) @config = Configurator.new( config ) end |
Instance Method Details
#show_it(debug = false) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/jbundler/tree.rb', line 11 def show_it( debug = false ) m = Maven::Ruby::Maven.new m.[ '-f' ] = File.join( File.dirname( __FILE__ ), '.polyglot.dependency_pom.rb' ) m.[ '-q' ] = nil unless debug m.verbose = debug @config.configure( m ) puts '...' tree = File.join( File.( @config.work_dir ), 'tree.txt' ) m.property( 'jbundler.outputFile', tree ) m.exec( 'dependency:tree' ) puts File.read( tree ) end |