Sha256: 071d4fb8de405e3562343b6c6afbeaeafd605079d7101408ea068e4bb04184aa
Contents?: true
Size: 822 Bytes
Versions: 8
Compression:
Stored size: 822 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 "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
8 entries across 8 versions & 1 rubygems