lib/beaker-hostgenerator/hypervisor.rb in beaker-hostgenerator-2.1.0 vs lib/beaker-hostgenerator/hypervisor.rb in beaker-hostgenerator-2.2.0
- old
+ new
@@ -35,11 +35,11 @@
# used for specifying the default or per-host hypervisor in the layout
# specification input string.
#
# @returns [Hash{String=>Hypervisor::Interface}] A map of hypervisor names
# and their implementations.
- def self.builtin_hypervisors()
+ def self.builtin_hypervisors
{
'vmpooler' => BeakerHostGenerator::Hypervisor::Vmpooler,
'vagrant' => BeakerHostGenerator::Hypervisor::Vagrant,
'vagrant_libvirt' => BeakerHostGenerator::Hypervisor::Vagrant,
'docker' => BeakerHostGenerator::Hypervisor::Docker,
@@ -58,11 +58,11 @@
# final hosts configuration output.
#
# This will only be called if the hypervisor is used for a node, in which
# case the returned map will be merged in with global configuration from
# other hypervisors.
- def global_config()
+ def global_config
{}
end
# Returns a map of host configuration for a single node.
#
@@ -82,11 +82,11 @@
# that this map will be merged into the map
# returned by this method.
#
# @param [Integer] bhg_version The version of OS info to use when building
# up the node definition.
- def generate_node(node_info, base_config, bhg_version)
+ def generate_node(_node_info, _base_config, _bhg_version)
raise "Method 'generate_node' not implemented!"
end
private
@@ -96,10 +96,10 @@
base_config.deeper_merge! get_platform_info(bhg_version, platform, hypervisor)
end
base_config['hypervisor'] = @name
- return base_config
+ base_config
end
end
end
end