Class: Cache

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet/commons/cache.rb

Constant Summary collapse

@@instance =
Cache.new

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCache

Returns a new instance of Cache.



5
6
7
# File 'lib/puppet/commons/cache.rb', line 5

def initialize
  @cache = {}
end

Class Method Details

.instanceObject



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