Class: Ivy::Buildnumber

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

def parameter
  [
    Parameter.new(:organisation, true),
    Parameter.new(:module, true),
    Parameter.new(:branch, false),
    Parameter.new(:revision, false),
    Parameter.new(:default, false),
    Parameter.new(:defaultBuildNumber, false),
    Parameter.new(:revSep, false),
    Parameter.new(:prefix, false),
    Parameter.new(:settingsRef, false),
    Parameter.new(:resolver, false)
  ]
end

#result_property_valuesObject



20
21
22
23
24
25
26
27
# File 'lib/ivy/buildnumber.rb', line 20

def result_property_values
  [
    ResultValue.new("ivy.revision", nil),
    ResultValue.new("ivy.new.revision", nil),
    ResultValue.new("ivy.build.number", nil),
    ResultValue.new("ivy.new.build.number", nil)
  ]
end