Sha256: 2d9cb0ae53c32da994738f39807f315daee43a0c94eaafa697b3b7e5c5de41fa

Contents?: true

Size: 482 Bytes

Versions: 3

Compression:

Stored size: 482 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

3 entries across 3 versions & 1 rubygems

Version Path
vagrant-routeros-0.0.5 lib/guest/cap/configure_ssh_shell.rb
vagrant-routeros-0.0.2 lib/guest/cap/configure_ssh_shell.rb
vagrant-routeros-0.0.1 lib/guest/cap/configure_ssh_shell.rb