class Punt::Receiver::Config
Public Class Methods
new(env=ENV,yaml=YAML)
click to toggle source
# File lib/punt/receiver/config.rb, line 6 def initialize(env=ENV,yaml=YAML) @env = env @yaml = yaml end
Public Instance Methods
github_token()
click to toggle source
# File lib/punt/receiver/config.rb, line 11 def github_token @env.fetch("GITHUB_TOKEN") end
relevant_repos()
click to toggle source
# File lib/punt/receiver/config.rb, line 15 def relevant_repos file_name = @env.fetch("PR_REPOS_FILE") @yaml.load_file(file_name)["repos"] end