Class: Assh::RandomProvider

Inherits:
Provider show all
Defined in:
lib/providers/random_provider.rb

Instance Method Summary collapse

Methods inherited from Provider

#add_host, load_configuration!, register_provider!, status, verbose!

Constructor Details

#initialize(configuration) ⇒ RandomProvider

Returns a new instance of RandomProvider.



8
9
10
# File 'lib/providers/random_provider.rb', line 8

def initialize(configuration)
  super(configuration)
end

Instance Method Details

#parse_config!(config) ⇒ Object



12
13
14
15
16
17
# File 'lib/providers/random_provider.rb', line 12

def parse_config!(config)
	return unless config
	raise 'Unexpected config type' unless config.is_a? Hash

      add_host('Random', 'rnd', Host.new({'Host' => 'rnd', 'HostName' => '123.1.2.3'}))
end