Sha256: dde06a5d2c78b1dc5c96c8c8e014b61e7dd7a6897d09f28f0508d373c55e128f

Contents?: true

Size: 483 Bytes

Versions: 1

Compression:

Stored size: 483 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.3 lib/guest/cap/configure_ssh_shell.rb