Module: Ocular::DSL::SSH

Included in:
RunContext, Event::DefinitionProxy
Defined in:
lib/ocular/dsl/ssh.rb

Instance Method Summary collapse

Instance Method Details

#ssh_to(hostname) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/ocular/dsl/ssh.rb', line 9

def ssh_to(hostname)
    settings = ::Ocular::Settings::get(:ssh)
    settings[:password_prompt] = false
    settings[:safe] = false

    rbox = ::Rye::Box.new(hostname, settings)
    return rbox
end