Class: Ivy::Findrevision

Inherits:
Target
  • Object
show all
Defined in:
lib/ivy/findrevision.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
# File 'lib/ivy/findrevision.rb', line 5

def parameter
  [
    Parameter.new(:organisation, true),
    Parameter.new(:module, true),
    Parameter.new(:branch, false),
    Parameter.new(:revision, true),
    Parameter.new(:property, false),
    Parameter.new(:settingsRef, false)
  ]
end

#result_property_valuesObject



16
17
18
19
20
21
# File 'lib/ivy/findrevision.rb', line 16

def result_property_values
  property = params[:property] || 'ivy.revision'
  [
    ResultValue.new("#{property}", nil)
  ]
end