Sha256: 28d8f199988ef876a18fb29bbc0b54fc3b98074f1fa0a9b9324e7249b0a9755f

Contents?: true

Size: 674 Bytes

Versions: 3

Compression:

Stored size: 674 Bytes

Contents

require 'jbundler/configurator'
module JBundler
  class Configurator

    attr_accessor :groups, :bootstrap, :verbose, :compile, :work_dir

    def initialize( config )
      @config = config
    end
    
    def configure( maven )
      maven.property( 'jbundler.basedir', @config.basedir )
      maven.property( 'jbundler.jarfile', @config.jarfile )
      maven.property( 'jbundler.gemfile', @config.gemfile )
      maven.property( 'jbundler.workdir', work_dir )
      maven.property( 'jbundler.groups', @groups )
      maven.property( 'jbundler.bootstrap', @bootstrap )
    end

    def work_dir
      @work_dir ||= File.expand_path( @config.work_dir )
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jbundler-0.6.2 lib/jbundler/configurator.rb
jbundler-0.6.1 lib/jbundler/configurator.rb
jbundler-0.6.0 lib/jbundler/configurator.rb