module Bard::CLI::SSH

Public Class Methods

included(mod) click to toggle source
# File lib/bard/cli/ssh.rb, line 2
def self.included mod
  mod.class_eval do

    option :home, type: :boolean
    desc "ssh [to=production]", "logs into the specified server via SSH"
    def ssh to=:production
      config[to].exec! "exec $SHELL -l", home: options[:home]
    end

  end
end

Public Instance Methods

ssh(to=:production) click to toggle source
# File lib/bard/cli/ssh.rb, line 7
def ssh to=:production
  config[to].exec! "exec $SHELL -l", home: options[:home]
end