class Kitchen::Driver::VmpoolStores::BaseStore
Public Class Methods
new(options = {})
click to toggle source
# File lib/kitchen/driver/vmpool_stores/base_store.rb, line 19 def initialize(options = {}) end
Public Instance Methods
cleanup(pool_member: nil, pool_name: nil, reuse_instances: false, &block)
click to toggle source
@param pool_member [String] - the name of the VM @param pool_name [String] - the name of the pool @param reuse_instances [Boolean] - whether or not the VM should be discarded when used a callback that executes when a pool member has been run
# File lib/kitchen/driver/vmpool_stores/base_store.rb, line 34 def cleanup(pool_member: nil, pool_name: nil, reuse_instances: false, &block) raise NotImplemented end
take_pool_member(pool_name)
click to toggle source
@return [String] - a random host from the list of systems mark them used so nobody else can use it @param pool_name [String] - the name of the pool to yank the memeber from
# File lib/kitchen/driver/vmpool_stores/base_store.rb, line 26 def take_pool_member(pool_name) raise NotImplemented end