aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Cooper <josh@puppet.com>2018-07-09 20:36:22 -0700
committerJosh Cooper <josh@puppet.com>2018-07-10 11:03:14 -0700
commiteff6ab2fc2c7014cba546fef9ae9d1f8f0592297 (patch)
treefe09f9c969c18660f770b6812d01c8b08e3cc18e
parent66fe7f73d2a517e34430471039150bf9faf8fba2 (diff)
downloadpuppet-hosts_core-eff6ab2fc2c7014cba546fef9ae9d1f8f0592297.tar.gz
puppet-hosts_core-eff6ab2fc2c7014cba546fef9ae9d1f8f0592297.tar.bz2
Move doc string to the beginning
-rw-r--r--lib/puppet/type/host.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/puppet/type/host.rb b/lib/puppet/type/host.rb
index e348969..52f0e87 100644
--- a/lib/puppet/type/host.rb
+++ b/lib/puppet/type/host.rb
@@ -1,6 +1,10 @@
require 'puppet/property/ordered_list'
Puppet::Type.newtype(:host) do
+ @doc = "Installs and manages host entries. For most systems, these
+ entries will just be in `/etc/hosts`, but some systems (notably OS X)
+ will have different solutions."
+
ensurable
newproperty(:ip) do
@@ -90,8 +94,4 @@ Puppet::Type.newtype(:host) do
raise Puppet::Error, _('Hostname cannot include newline') if value =~ %r{\n} || value =~ %r{\r}
end
end
-
- @doc = "Installs and manages host entries. For most systems, these
- entries will just be in `/etc/hosts`, but some systems (notably OS X)
- will have different solutions."
end