Module: CCSH::SSH
- Defined in:
- lib/ccsh/ssh.rb
Defined Under Namespace
Classes: RemoteCommand
Class Method Summary collapse
Class Method Details
.start {|cmd| ... } ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/ccsh/ssh.rb', line 5 def self.start cmd = RemoteCommand.new yield cmd raise 'Could not parser the remote command' if cmd.command == nil raise 'Could not parser the hostname' if cmd.hostname == nil return cmd.execute! end |