Sha256: 7843ab475b28f586b795e7fdd564e1bc183577ceab973717360fd420438f06c0

Contents?: true

Size: 961 Bytes

Versions: 2

Compression:

Stored size: 961 Bytes

Contents

require "thor"
require_relative "ssh/development"
require_relative "ssh/production"
require_relative "ssh/staging"

module Dogids
  class Cli < Thor
    desc "ssh", "List available SSH commands"
    def ssh(vm_name = nil)
      case vm_name
      when "dev"
        ssh_development(vm_name)
      when "staging"
        ssh_staging(vm_name)
      else
        puts "Development SSH Commands:"
        puts "  dogids ssh dev               # SSH into local development VM"
        puts " "
        puts "Staging SSH Commands:"
        puts "  dogids ssh staging           # SSH into staging Apache/PHP/MySQL VM"
        puts " "
        puts "Production SSH Commands:"
        puts "  dogids ssh:production db     # SSH into production MySQL/Redis VM"
        puts "  dogids ssh:production web    # SSH into production Apache/PHP VM"
        puts "  dogids ssh:production worker # SSH into production Ruby/Sidekiq VM"
        puts " "
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dogids-cli-0.0.15 lib/dogids/ssh.rb
dogids-cli-0.0.14 lib/dogids/ssh.rb