Class: Ivy::Info

Inherits:
Target show all
Defined in:
lib/ivy/info.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

#parameterObject



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

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

#result_property_valuesObject



17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/ivy/info.rb', line 17

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