Sha256: cb2c6580e507d42a09a9e2aa150396303771b4fd8fc72fbd10eb68a7c1de6a31

Contents?: true

Size: 573 Bytes

Versions: 12

Compression:

Stored size: 573 Bytes

Contents

module Vidar
  class DeployConfig
    SUCCESS_COLOR = "008800".freeze
    FAILURE_COLOR = "ff1100".freeze

    attr_reader :name, :url, :success_color, :failure_color, :slack_webhook_url, :sentry_webhook_url

    def initialize(options)
      @name = options.fetch(:name)
      @url = options.fetch(:url)

      @success_color = options.fetch(:success_color, SUCCESS_COLOR)
      @failure_color = options.fetch(:failure_color, FAILURE_COLOR)

      @slack_webhook_url = options[:slack_webhook_url]
      @sentry_webhook_url = options[:sentry_webhook_url]
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
vidar-0.12.1 lib/vidar/deploy_config.rb
vidar-0.12.0 lib/vidar/deploy_config.rb
vidar-0.11.0 lib/vidar/deploy_config.rb
vidar-0.10.2 lib/vidar/deploy_config.rb
vidar-0.10.1 lib/vidar/deploy_config.rb
vidar-0.10.0 lib/vidar/deploy_config.rb
vidar-0.9.0 lib/vidar/deploy_config.rb
vidar-0.8.2 lib/vidar/deploy_config.rb
vidar-0.7.2 lib/vidar/deploy_config.rb
vidar-0.7.1 lib/vidar/deploy_config.rb
vidar-0.7.0 lib/vidar/deploy_config.rb
vidar-0.6.0 lib/vidar/deploy_config.rb