Sha256: c33e9fe8b7a5132261de28796d56fe22e64d0d147402971005b7f860f583de11

Contents?: true

Size: 779 Bytes

Versions: 60

Compression:

Stored size: 779 Bytes

Contents

require 'ivy/target'

module Ivy
  class Artifactproperty < Ivy::Target
    def parameter
      [
        Parameter.new(:name, true),
        Parameter.new(:value, true),
        Parameter.new(:conf, false),
        Parameter.new(:haltonfailure, false),
        Parameter.new(:validate, false),
        Parameter.new(:overwrite, false),
        Parameter.new(:settingsRef, false),
      ]
    end

    protected
    def before_hook
      @cached_property_names = ant_properties.map {|key, value| key }
    end

    def after_hook
      @cached_property_names = nil
    end

    def execute_ivy
      call_nested :ivy_artifactproperty => params
    end

    def create_return_values
      ant_properties.reject { |key, value| @cached_property_names.member? key }
    end
  end
end

Version data entries

60 entries across 60 versions & 3 rubygems

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