Sha256: dc477aeaf6ae00048f276319a2db11102b075975c1e19f15bf68d00c6294b94c

Contents?: true

Size: 876 Bytes

Versions: 60

Compression:

Stored size: 876 Bytes

Contents

require 'ivy/target'

module Ivy
  class Buildnumber < Ivy::Target
    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

    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

    protected
    def execute_ivy
      call_nested :ivy_buildnumber => params
    end
  end
end

Version data entries

60 entries across 60 versions & 3 rubygems

Version Path
ivy4r-0.12.4 lib/ivy/buildnumber.rb
ivy4r-0.12.3 lib/ivy/buildnumber.rb
ivy4r-0.12.2 lib/ivy/buildnumber.rb
ivy4r-0.12.1 lib/ivy/buildnumber.rb
ivy4r-0.12.0 lib/ivy/buildnumber.rb
ivy4r-0.11.1 lib/ivy/buildnumber.rb
ivy4r-0.11.0 lib/ivy/buildnumber.rb
ivy4r-0.10.5 lib/ivy/buildnumber.rb
ivy4r-0.10.4 lib/ivy/buildnumber.rb
ivy4r-0.10.3 lib/ivy/buildnumber.rb
ivy4r-0.10.2 lib/ivy/buildnumber.rb
ivy4r-0.10.1 lib/ivy/buildnumber.rb
ivy4r-0.10.0 lib/ivy/buildnumber.rb
ivy4r-0.9.15 lib/ivy/buildnumber.rb
ivy4r-0.9.14 lib/ivy/buildnumber.rb
ivy4r-0.9.13 lib/ivy/buildnumber.rb
ivy4r-0.9.12 lib/ivy/buildnumber.rb
ivy4r-0.9.11 lib/ivy/buildnumber.rb
ivy4r-0.9.10 lib/ivy/buildnumber.rb
ivy4r-0.9.9 lib/ivy/buildnumber.rb