class HoundListSync::HoundConfig

Public Class Methods

new(raw) click to toggle source
# File lib/hound_list_sync/hound_config.rb, line 5
def initialize(raw)
  @raw = raw
  @raw["repos"] ||= {}
end

Public Instance Methods

extend_with(extensions) click to toggle source
# File lib/hound_list_sync/hound_config.rb, line 10
def extend_with(extensions)
  extensions.repositories.each do |repo|
    next unless repo.indexable?

    @raw["repos"][repo.name] = repo.to_config
  end
end
to_json(*args) click to toggle source
# File lib/hound_list_sync/hound_config.rb, line 18
def to_json(*args)
  @raw.to_json(*args)
end
total_repos() click to toggle source
# File lib/hound_list_sync/hound_config.rb, line 22
def total_repos
  @raw["repos"].keys.length
end