Sha256: 98a2dc284c4c307ee7a06b5e3e0456567df627fd146a4186052e2ebbab88a111

Contents?: true

Size: 480 Bytes

Versions: 5

Compression:

Stored size: 480 Bytes

Contents

module JenkinsJob
  module Postbuild
    class Archive < BasicObject
      attr_reader :artifacts_, :exclude_, :allow_empty_, :latest_only_

      def file(*value)
        @artifacts_ = value.join(',')
      end

      def exclude(*value)
        @exclude_ = value.join(',')
      end

      def allow_empty(value = true)
        @allow_empty_ = value
      end

      def latest_only(value = true)
        @latest_only_ = value
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rubyjobbuilderdsl-0.0.5 lib/rubyjobbuilderdsl/postbuild/archive.rb
rubyjobbuilderdsl-0.0.3 lib/rubyjobbuilderdsl/postbuild/archive.rb
rubyjobbuilderdsl-0.0.2 lib/rubyjobbuilderdsl/postbuild/archive.rb
rubyjobbuilderdsl-0.0.1 lib/rubyjobbuilderdsl/postbuild/archive.rb
rubyjobbuilderdsl-0.0.0 lib/rubyjobbuilderdsl/postbuild/archive.rb