lib/sailfish_tools/vm_manager.rb
# Modify paths to the ssh keys in the VM configuration
Modify paths to the ssh keys in the VM configuration
Modify paths to the ssh keys in the VM configuration
def print_template(template)
    machine_info = @machines.find { |machine| machine[:name].include?(template[:name]) }
    config = template.merge(machine_info)
    Find.find(@vmshare_dir) do |file|
      next unless File.basename(file) == config[:config][1]
      config[:config].last[:keys].push(file)
    end
    if config[:config].last[:keys].empty?
      raise "Unable to find keys to the machine '#{config[:name]}' in '#{@vmshare_dir}'"
    end
    config[:config].last[:verify_host_key] = :never
    config
  end
def print_template ( template ) machine_info = @machines . find { | machine | machine [ :name ] . include? ( template [ :name ] ) } config = template . merge ( machine_info ) Find . find ( @vmshare_dir ) do | file | next unless File . basename ( file ) == config [ :config ] [ 1 ] config [ :config ] . last [ :keys ] . push ( file ) end if config [ :config ] . last [ :keys ] . empty? raise "Unable to find keys to the machine '#{config[:name]}' in '#{@vmshare_dir}'" end config [ :config ] . last [ :verify_host_key ] = :never config end
Modify paths to the ssh keys in the VM configuration
Modify paths to the ssh keys in the VM configuration
template
<not_specific>