class Minimart::Mirror::LocalStore

The LocalStore manages what is stored in the local inventory, and adding cookbook directories to the local inventory. The LocalStore will automatically load anything that has been stored in the inventory upon initialization.

Attributes

directory_path[R]

@return [String] the path to the local inventory

Public Class Methods

new(directory_path) click to toggle source

@param [String] directory_path The path to the local inventory

# File lib/minimart/mirror/local_store.rb, line 16
def initialize(directory_path)
  @directory_path = directory_path
  @cookbooks      = {}
  @metadata = {}

  load_local_inventory

end