Class: Ivy::Info
Instance Attribute Summary
Attributes inherited from Target
Instance Method Summary collapse
Methods inherited from Target
Constructor Details
This class inherits a constructor from Ivy::Target
Instance Method Details
#parameter ⇒ Object
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_values ⇒ Object
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 |