Sha256: 736f79b5987b56ebb462fab7184a9f22e83383fb808bb7019ef78a30d84472cd

Contents?: true

Size: 398 Bytes

Versions: 1

Compression:

Stored size: 398 Bytes

Contents

require "thor"

module Dogids
  class Cli < Thor
    no_commands do
      def ssh_development(vm_name = nil)
        if vm_name == "dev"
          ssh_address = get_config_url(vm_name)
          puts "Running: ssh -R 52698:localhost:52698 dogids@#{ssh_address}"
          exec("ssh -R 52698:localhost:52698 dogids@#{ssh_address}")
        else
          ssh
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dogids-cli-0.0.19 lib/dogids/ssh/development.rb