Class: Ivy::Cachepath

Inherits:
Target
  • Object
show all
Defined in:
lib/ivy/cachepath.rb

Instance Attribute Summary

Attributes inherited from Target

#params

Instance Method Summary collapse

Methods inherited from Target

#execute, #initialize

Constructor Details

This class inherits a constructor from Ivy::Target

Instance Method Details

#create_return_valuesObject



19
20
21
22
23
# File 'lib/ivy/cachepath.rb', line 19

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

#parameterObject



5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/ivy/cachepath.rb', line 5

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