Module: Dapp::CLI::Options::Ssh

Class Method Summary collapse

Class Method Details

.extended(klass) ⇒ Object



5
6
7
8
9
10
11
12
13
14
# File 'lib/dapp/cli/options/ssh.rb', line 5

def self.extended(klass)
  klass.class_eval do
    option :ssh_key,
          long: '--ssh-key SSH_KEY',
          description: ['Enable only specified ssh keys ',
                        '(use system ssh-agent by default)'].join,
          default: nil,
          proc: ->(v) { composite_options(:ssh_key) << v }
  end
end