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.9.7 lib/ivy/cachepath.rb
ivy4r-0.9.6 lib/ivy/cachepath.rb
ivy4r-0.9.5 lib/ivy/cachepath.rb
ivy4r-0.9.4 lib/ivy/cachepath.rb
ivy4r-0.9.3 lib/ivy/cachepath.rb
ivy4r-0.9.2 lib/ivy/cachepath.rb
ivy4r-0.9.1 lib/ivy/cachepath.rb
ivy4r-0.9.0 lib/ivy/cachepath.rb
ivy4r-0.8.1 lib/ivy/cachepath.rb
ivy4r-0.8.0 lib/ivy/cachepath.rb
ivy4r-0.7.3 lib/ivy/cachepath.rb
ivy4r-0.7.2 lib/ivy/cachepath.rb
ivy4r-0.7.1 lib/ivy/cachepath.rb
ivy4r-0.2.0 lib/ivy/cachepath.rb
ivy4r-0.3.0 lib/ivy/cachepath.rb
ivy4r-0.5.1 lib/ivy/cachepath.rb
ivy4r-0.5.2 lib/ivy/cachepath.rb
ivy4r-0.5.3 lib/ivy/cachepath.rb
ivy4r-0.6.0 lib/ivy/cachepath.rb
ivy4r-0.7.0 lib/ivy/cachepath.rb