class Configuration

Constants

Github
Mirror

Attributes

yaml[R]

Public Class Methods

new(path) click to toggle source
# File lib/updater/configuration.rb, line 8
def initialize(path)
  @yaml = YAML.load_file(path)
end

Public Instance Methods

excluded_pods() click to toggle source
# File lib/updater/configuration.rb, line 24
def excluded_pods
  @yaml['excluded_pods']
end
master_repo() click to toggle source
# File lib/updater/configuration.rb, line 12
def master_repo
  @yaml['master_repo']
end
mirror() click to toggle source
# File lib/updater/configuration.rb, line 28
def mirror
  context = @yaml['mirror']
  Mirror.new(
    context['specs_push_url'],
    context['source_push_url'],
    context['source_clone_url'],
    github)
end
podfiles() click to toggle source
# File lib/updater/configuration.rb, line 16
def podfiles
  @yaml['podfiles']
end
pods() click to toggle source
# File lib/updater/configuration.rb, line 20
def pods
  @yaml['pods']
end

Private Instance Methods

github() click to toggle source
# File lib/updater/configuration.rb, line 39
def github
  context = @yaml['mirror']['github']
  Github.new(
    context['acccess_token'],
    context['organisation'],
    context['endpoint'])
end