Class: BuildkiteWatcher::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/buildkite_watcher/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config, secrets) ⇒ Config

Returns a new instance of Config.



7
8
9
10
# File 'lib/buildkite_watcher/config.rb', line 7

def initialize(config, secrets)
  @pipeline_slug = config.fetch(:pipeline_slug)
  @buildkite_token = secrets.fetch(:buildkite_token)
end

Instance Attribute Details

#buildkite_tokenObject (readonly)

Returns the value of attribute buildkite_token.



5
6
7
# File 'lib/buildkite_watcher/config.rb', line 5

def buildkite_token
  @buildkite_token
end

#pipeline_slugObject (readonly)

Returns the value of attribute pipeline_slug.



5
6
7
# File 'lib/buildkite_watcher/config.rb', line 5

def pipeline_slug
  @pipeline_slug
end