Module: Bard::CLI::SSH

Defined in:
lib/bard/cli/ssh.rb

Class Method Summary collapse

Class Method Details

.included(mod) ⇒ Object



2
3
4
5
6
7
8
9
10
11
12
# 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