summaryrefslogtreecommitdiffstats
path: root/lib/puppet/file_serving/mount.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/file_serving/mount.rb')
-rw-r--r--lib/puppet/file_serving/mount.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/puppet/file_serving/mount.rb b/lib/puppet/file_serving/mount.rb
index c52cedbfb..552cf33f2 100644
--- a/lib/puppet/file_serving/mount.rb
+++ b/lib/puppet/file_serving/mount.rb
@@ -13,16 +13,17 @@ require 'puppet/file_serving/content'
# or content objects.
class Puppet::FileServing::Mount < Puppet::Network::AuthStore
include Puppet::Util::Logging
- extend Puppet::Util::Cacher
- def self.localmap
- attr_cache(:localmap) {
+ class << self
+ include Puppet::Util::Cacher
+
+ cached_attr(:localmap) do
{ "h" => Facter.value("hostname"),
"H" => [Facter.value("hostname"),
Facter.value("domain")].join("."),
"d" => Facter.value("domain")
}
- }
+ end
end
attr_reader :name