Sha256: c8508feff66ca9c927029260d9449a62589daf995f495c4cc72c5d733935f8d1
Contents?: true
Size: 633 Bytes
Versions: 1
Compression:
Stored size: 633 Bytes
Contents
# frozen_string_literal: true module CloudFlare module DynamicDNS # Read cloudflare-dynamic-dns configuration that will be used for the cloudflare dns update. class ConfigReader DEFAULT_CONFIG_PATH = '/etc/cloudflare-dynamic-dns.conf'.freeze # @param [String] path to configuration, defaults to '/etc/cloudflare-dynamic-dns.conf' def initialize(path: DEFAULT_CONFIG_PATH) @path = path || DEFAULT_CONFIG_PATH end # @return [Array] config as an array object def read @config = File.read(path) end private attr_reader :path, :config end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cloudflare-dynamic-dns-0.1.0 | lib/cloud_flare/dynamic_dns/config_reader.rb |