Class: Kitchen::Driver::VmpoolStores::FileStore

Inherits:
FileBaseStore show all
Includes:
Logging
Defined in:
lib/kitchen/driver/vmpool_stores/file_store.rb

Instance Attribute Summary

Attributes inherited from FileBaseStore

#pool_data, #pool_file

Instance Method Summary collapse

Methods inherited from FileBaseStore

#cleanup, #create, #read, #reread, #save, #take_pool_member, #update

Methods inherited from BaseStore

#cleanup, #take_pool_member

Constructor Details

#initialize(options = nil) ⇒ FileStore

Returns a new instance of FileStore.

Parameters:

  • pool_file (Hash)

    a customizable set of options

Raises:

  • (ArgumentError)

11
12
13
14
15
# File 'lib/kitchen/driver/vmpool_stores/file_store.rb', line 11

def initialize(options = nil)
  raise ArgumentError unless options['pool_file']
  options ||= { 'pool_file' => 'vmpool.yaml' }
  @pool_file = options['pool_file']
end