Sha256: bebdbcc62255a049a321e312dd21bf0f4681844761fa1ba759e0e0becd668cc5

Contents?: true

Size: 481 Bytes

Versions: 1

Compression:

Stored size: 481 Bytes

Contents

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

module RouterosGuestPlugin
  module Cap
    class ConfigureSSHShell
      def self.set_ssh_shell(machine)
        if machine.config.vm.guest == :routeros 
          # Echo a message on the guest machine
          machine.ui.info("Setting ssh shell and sudo command to # for RouterOS")
          machine.config.ssh.shell = ""
          machine.config.ssh.sudo_command = "#"
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-routeros-0.0.4 lib/guest/cap/configure_ssh_shell.rb