Sha256: e05918cd2d23151c3a312640610209bd5f75893fabde8c42bf3e669ce76470b8

Contents?: true

Size: 434 Bytes

Versions: 3

Compression:

Stored size: 434 Bytes

Contents

module JenkinsJob
  module BuildStep
    class CopyArtifact < BasicObject
      attr_reader :project_, :filter_, :target_, :build_number_

      def initialize(artifact_job)
        @project_ = artifact_job
      end

      def file(*files)
        @filter_ = files.join(',')
      end

      def to(dir)
        @target_ = dir
      end

      def build_number(value = nil)
        @build_number_ = value
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubyjobbuilderdsl-0.0.8 lib/rubyjobbuilderdsl/buildstep/copyartifact.rb
rubyjobbuilderdsl-0.0.6 lib/rubyjobbuilderdsl/buildstep/copyartifact.rb
rubyjobbuilderdsl-0.0.4 lib/rubyjobbuilderdsl/buildstep/copyartifact.rb