class Object

Public Class Methods

host_reset() click to toggle source

Resets the information stored for a host.

  • Host inventory.

  • Detected OS.

@return void

@api public

# File lib/dockerspec/engine/specinfra/backend_hack.rb, line 54
def self.host_reset
  property[:host_inventory] = property[:os] = nil
  Specinfra.backend.instance_variable_set(:@os_info, nil)
end
instance_set(instance) click to toggle source

Sets the internal backend instance.

@param instance [Specinfra::Backend::Base] the backend object.

@return [Specinfra::Backend::Base]

@api public

# File lib/dockerspec/engine/specinfra/backend_hack.rb, line 38
def self.instance_set(instance)
  return if @instance == instance
  host_reset
  @instance = instance
end