Sha256: 9cac92ef737f58234858717533e791e7bb848df6e2c14a25c89a4810e0db989b

Contents?: true

Size: 590 Bytes

Versions: 5

Compression:

Stored size: 590 Bytes

Contents

# dsl methods for job builder
module JenkinsJob
  module Postbuild
    class EmailPublisher < BasicObject
      attr_reader :recipients_, :notify_every_unstable_build_,  :send_to_individuals_

      def initialize(recipients)
        @recipients_ = recipients

        @notify_every_unstable_build_ = true
        @send_to_individuals_ = false
      end

      def notify_every_unstable_build(value)
        @notify_every_unstable_build_ = value
      end

      def send_to_individuals(value = true)
        @send_to_individuals_ = value
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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