Sha256: 58d7556c87e10a0a5bcae2ec4f502980cee7d9abda4e5bd59666437acf4bcbd1

Contents?: true

Size: 505 Bytes

Versions: 20

Compression:

Stored size: 505 Bytes

Contents

# encoding: UTF-8

require "pathname"

module Gjp
  # attempts to get a pom's parent pom
  class ParentPomGetter
    include Logger

    # returns the pom's parent, if any
    def get_parent_pom(filename)
      begin
        pom = Pom.new(filename)
        site = MavenWebsite.new

        site.download_pom(pom.parent_group_id, pom.parent_artifact_id, pom.parent_version)
      rescue RestClient::ResourceNotFound
        $stderr.puts "Could not find a parent for this pom!" 
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
gjp-0.29.0 lib/gjp/parent_pom_getter.rb
gjp-0.28.0 lib/gjp/parent_pom_getter.rb
gjp-0.27.0 lib/gjp/parent_pom_getter.rb
gjp-0.26.0 lib/gjp/parent_pom_getter.rb
gjp-0.25.0 lib/gjp/parent_pom_getter.rb
gjp-0.24.0 lib/gjp/parent_pom_getter.rb
gjp-0.23.0 lib/gjp/parent_pom_getter.rb
gjp-0.22.0 lib/gjp/parent_pom_getter.rb
gjp-0.21.0 lib/gjp/parent_pom_getter.rb
gjp-0.20.0 lib/gjp/parent_pom_getter.rb
gjp-0.19.0 lib/gjp/parent_pom_getter.rb
gjp-0.18.0 lib/gjp/parent_pom_getter.rb
gjp-0.17.1 lib/gjp/parent_pom_getter.rb
gjp-0.17.0 lib/gjp/parent_pom_getter.rb
gjp-0.16.1 lib/gjp/parent_pom_getter.rb
gjp-0.16.0 lib/gjp/parent_pom_getter.rb
gjp-0.15.7 lib/gjp/parent_pom_getter.rb
gjp-0.14.1 lib/gjp/parent_pom_getter.rb
gjp-0.13.1 lib/gjp/parent_pom_getter.rb
gjp-0.11.2 lib/gjp/parent_pom_getter.rb