Sha256: 6356fe89e0d1c83d67fbcc042c92cf38b3d11e28e771acdf66705a0a0593e97f

Contents?: true

Size: 1.03 KB

Versions: 60

Compression:

Stored size: 1.03 KB

Contents

require 'ivy/target'

module Ivy
  class Info < Ivy::Target
    def parameter
      [
        Parameter.new(:file, true),
        Parameter.new(:organisation, false),
        Parameter.new(:module, false),
        Parameter.new(:branch, false),
        Parameter.new(:revision, false),
        Parameter.new(:property, false),
        Parameter.new(:settingsRef, false)
      ]
    end

    def result_property_values
      property = params[:property] || 'ivy'
      [
        ResultValue.new("#{property}.organisation", nil),
        ResultValue.new("#{property}.module", nil),
        ResultValue.new("#{property}.branch", nil),
        ResultValue.new("#{property}.revision", nil),
        ResultValue.new("#{property}.status", nil),
        ResultValue.new(/#{property}.extra\..*/, nil),
        ResultValue.new("#{property}.configurations", Ivy::COMMA_SPLITTER),
        ResultValue.new("#{property}.public.configurations", Ivy::COMMA_SPLITTER)
      ]
    end

    protected
    def execute_ivy
      call_nested :ivy_info => params
    end
  end
end

Version data entries

60 entries across 60 versions & 3 rubygems

Version Path
pepijnve-ivy4r-0.12.11 lib/ivy/info.rb
klaas1979-ivy4r-0.1.0 lib/ivy/info.rb
klaas1979-ivy4r-0.2.0 lib/ivy/info.rb
klaas1979-ivy4r-0.3.0 lib/ivy/info.rb
klaas1979-ivy4r-0.4.0 lib/ivy/info.rb
klaas1979-ivy4r-0.5.0 lib/ivy/info.rb
klaas1979-ivy4r-0.5.1 lib/ivy/info.rb
klaas1979-ivy4r-0.5.2 lib/ivy/info.rb
klaas1979-ivy4r-0.5.3 lib/ivy/info.rb
klaas1979-ivy4r-0.6.0 lib/ivy/info.rb
klaas1979-ivy4r-0.7.0 lib/ivy/info.rb
klaas1979-ivy4r-0.7.1 lib/ivy/info.rb
klaas1979-ivy4r-0.7.2 lib/ivy/info.rb
klaas1979-ivy4r-0.7.3 lib/ivy/info.rb
ivy4r-0.12.10 lib/ivy/info.rb
ivy4r-0.12.9 lib/ivy/info.rb
ivy4r-0.12.8 lib/ivy/info.rb
ivy4r-0.12.7 lib/ivy/info.rb
ivy4r-0.12.6 lib/ivy/info.rb
ivy4r-0.12.5 lib/ivy/info.rb