class CachedRegistry

Public Class Methods

new(*) click to toggle source
Calls superclass method Registry::new
# File lib/smartos-manager/core.rb, line 289
def initialize(*)
  puts "(( Using cached data ))"
  super
end

Public Instance Methods

failed_connections() click to toggle source
# File lib/smartos-manager/core.rb, line 303
def failed_connections
  []
end
run_on_all(cmd) click to toggle source
# File lib/smartos-manager/core.rb, line 294
def run_on_all(cmd)
  if @cache[@cache_key] && @cache[@cache_key][cmd]
    @cache[@cache_key][cmd]
  else
    puts "[#{@cache_key}] missing cache for cmd: '#{cmd}'"
    {}
  end
end