Sha256: 5cd16dace97a9c84bafcba9f0cd832572980bd9979177c9cf99f959191a6eb3b

Contents?: true

Size: 661 Bytes

Versions: 12

Compression:

Stored size: 661 Bytes

Contents

require 'lock_jar/registry'
require 'lock_jar_bundler/version'

module LockJar

  class Bundler

    def self.bundled_jarfiles(groups=[:default])
      jarfiles = []

      ::Bundler.with_clean_env do
        ::Bundler.setup(groups)
        definition = ::Bundler.definition

        definition.specs_for(groups).each do |spec|
          gem_dir = spec.gem_dir

          jarfile = File.join( gem_dir, "Jarfile" )

          # XXX: assert that is a LockJar file

          if File.exists?( jarfile )
            puts "#{spec.name} has Jarfile for locking"
            jarfiles << jarfile
          end
        end
      end

      jarfiles
    end

  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
lock_jar-0.13.0 bundler/lib/lock_jar_bundler/bundler.rb
lock_jar-0.12.6 bundler/lib/lock_jar_bundler/bundler.rb
lock_jar-0.12.5 bundler/lib/lock_jar_bundler/bundler.rb
lock_jar-0.12.4 bundler/lib/lock_jar_bundler/bundler.rb
lock_jar-0.12.3 bundler/lib/lock_jar_bundler/bundler.rb
lock_jar-0.12.2 bundler/lib/lock_jar_bundler/bundler.rb
lock_jar-0.12.1 bundler/lib/lock_jar_bundler/bundler.rb
lock_jar-0.12.0 bundler/lib/lock_jar_bundler/bundler.rb
lock_jar-0.10.5 bundler/lib/lock_jar_bundler/bundler.rb
lock_jar-0.10.4 bundler/lib/lock_jar_bundler/bundler.rb
lock_jar-0.10.3 bundler/lib/lock_jar_bundler/bundler.rb
lock_jar-0.10.2 bundler/lib/lock_jar_bundler/bundler.rb