Module: Doorway
- Defined in:
- lib/doorway.rb,
lib/doorway/base.rb,
lib/doorway/version.rb
Defined Under Namespace
Modules: Exec, ExecAs, Packages, RemoteFile, Version
Classes: Base
Class Method Summary
collapse
Class Method Details
.connect(user, host, options = {}) {|conn| ... } ⇒ Object
12
13
14
15
16
17
18
19
|
# File 'lib/doorway.rb', line 12
def self.connect(user, host, options={})
ssh = Net::SSH.start(host, user.to_s, options)
conn = Doorway::Base.new(ssh)
yield conn if block_given?
conn
end
|