Sha256: c39793da317a13af8e54d8060e7b29288a6dca87452215873236208c89544042

Contents?: true

Size: 358 Bytes

Versions: 13

Compression:

Stored size: 358 Bytes

Contents

require "thor"

module Dogids
  class Cli < Thor
    no_commands do
      def ssh_staging(vm_name = nil)
        if vm_name == "staging"
          puts "Running: ssh -R 52698:localhost:52698 dogids@staging.dogids.com"
          exec("ssh -R 52698:localhost:52698 dogids@staging.dogids.com")
        else
          ssh
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
dogids-cli-0.0.18 lib/dogids/ssh/staging.rb
dogids-cli-0.0.17 lib/dogids/ssh/staging.rb
dogids-cli-0.0.16 lib/dogids/ssh/staging.rb
dogids-cli-0.0.15 lib/dogids/ssh/staging.rb
dogids-cli-0.0.14 lib/dogids/ssh/staging.rb
dogids-cli-0.0.13 lib/dogids/ssh/staging.rb
dogids-cli-0.0.12 lib/dogids/ssh/staging.rb
dogids-cli-0.0.11 lib/dogids/ssh/staging.rb
dogids-cli-0.0.10 lib/dogids/ssh/staging.rb
dogids-cli-0.0.9 lib/dogids/ssh/staging.rb
dogids-cli-0.0.8 lib/dogids/ssh/staging.rb
dogids-cli-0.0.7 lib/dogids/ssh/staging.rb
dogids-cli-0.0.6 lib/dogids/ssh/staging.rb