Sha256: 92272ee0b75786156de8e72b960531d6e93748a337e966f3b096ea266f714c0f

Contents?: true

Size: 814 Bytes

Versions: 60

Compression:

Stored size: 814 Bytes

Contents

require 'ivy/target'

module Ivy
  class Cachepath < Ivy::Target
    def parameter
      [
        Parameter.new(:pathid, true),
        Parameter.new(:conf, false),
        Parameter.new(:inline, false),
        Parameter.new(:organisation, false),
        Parameter.new(:module, false),
        Parameter.new(:revision, false),
        Parameter.new(:branch, false),
        Parameter.new(:type, false),
        Parameter.new(:settingsRef, false),
      ]
    end

    def create_return_values
      path = ant_references.find { |current| current[0] == params[:pathid] }[1]
      raise "Could not get path for confs: #{params.inspect}" unless path && path.respond_to?(:list)
      path.list.map {|a| a.to_s }
    end

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

Version data entries

60 entries across 60 versions & 3 rubygems

Version Path
ivy4r-0.12.4 lib/ivy/cachepath.rb
ivy4r-0.12.3 lib/ivy/cachepath.rb
ivy4r-0.12.2 lib/ivy/cachepath.rb
ivy4r-0.12.1 lib/ivy/cachepath.rb
ivy4r-0.12.0 lib/ivy/cachepath.rb
ivy4r-0.11.1 lib/ivy/cachepath.rb
ivy4r-0.11.0 lib/ivy/cachepath.rb
ivy4r-0.10.5 lib/ivy/cachepath.rb
ivy4r-0.10.4 lib/ivy/cachepath.rb
ivy4r-0.10.3 lib/ivy/cachepath.rb
ivy4r-0.10.2 lib/ivy/cachepath.rb
ivy4r-0.10.1 lib/ivy/cachepath.rb
ivy4r-0.10.0 lib/ivy/cachepath.rb
ivy4r-0.9.15 lib/ivy/cachepath.rb
ivy4r-0.9.14 lib/ivy/cachepath.rb
ivy4r-0.9.13 lib/ivy/cachepath.rb
ivy4r-0.9.12 lib/ivy/cachepath.rb
ivy4r-0.9.11 lib/ivy/cachepath.rb
ivy4r-0.9.10 lib/ivy/cachepath.rb
ivy4r-0.9.9 lib/ivy/cachepath.rb