Skip to content

Commit

Permalink
Move Y2Network::DNSConfig to Y2Network::DNS
Browse files Browse the repository at this point in the history
* Just to be consistent with Y2Network::Routing.
  • Loading branch information
imobachgs committed Apr 29, 2019
1 parent bb36588 commit 3de97b9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/lib/y2network/config_reader/sysconfig_dns.rb
Expand Up @@ -17,7 +17,7 @@
# To contact SUSE LLC about this file by physical or electronic mail, you may
# find current contact information at www.suse.com.
require "yast"
require "y2network/dns_config"
require "y2network/dns"

module Y2Network
module ConfigReader
Expand All @@ -29,8 +29,8 @@ class SysconfigDNS
#
# @return [Y2Network::DnsConfig] DNS configuration
def config
Y2Network::DNSConfig.new(
name_servers: name_servers,
Y2Network::DNS.new(
name_servers: name_servers,
hostname: hostname,
search_domains: search_domains,
resolv_conf_policy: resolv_conf_policy,
Expand Down
Expand Up @@ -19,7 +19,7 @@

module Y2Network
# DNS configuration (hostname, name servers, etc.).
class DNSConfig
class DNS
# @return [String] Hostname (local part)
attr_reader :hostname

Expand Down
2 changes: 1 addition & 1 deletion test/y2network/config_reader/sysconfig_dns_test.rb
Expand Up @@ -56,7 +56,7 @@

it "returns the DNS configuration" do
config = reader.config
expect(config).to be_a(Y2Network::DNSConfig)
expect(config).to be_a(Y2Network::DNS)
end

it "includes the hostname" do
Expand Down

0 comments on commit 3de97b9

Please sign in to comment.