Class: Cache
- Inherits:
-
Object
- Object
- Cache
- Defined in:
- lib/puppet/commons/cache.rb
Constant Summary collapse
- @@instance =
Cache.new
Class Method Summary collapse
Instance Method Summary collapse
- #conf(app) ⇒ Object
-
#initialize ⇒ Cache
constructor
A new instance of Cache.
Constructor Details
#initialize ⇒ Cache
Returns a new instance of Cache.
5 6 7 |
# File 'lib/puppet/commons/cache.rb', line 5 def initialize @cache = {} end |
Class Method Details
.instance ⇒ Object
11 12 13 |
# File 'lib/puppet/commons/cache.rb', line 11 def self.instance return @@instance; end |
Instance Method Details
#conf(app) ⇒ Object
15 16 17 |
# File 'lib/puppet/commons/cache.rb', line 15 def conf(app) puts Puppet::Module.find("tp", compiler.environment.to_s) end |