Class: Frontier::Shell

Inherits:
Object
  • Object
show all
Defined in:
lib/frontier/shell.rb

Instance Method Summary collapse

Constructor Details

#initialize(host = 'localhost', port = 22) ⇒ Shell

Returns a new instance of Shell.



6
7
8
# File 'lib/frontier/shell.rb', line 6

def initialize(host = 'localhost', port = 22)
  @channel = Channel.new(host, port)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args) ⇒ Object



10
11
12
# File 'lib/frontier/shell.rb', line 10

def method_missing(name, *args)
  return @channel.submit({ :name => name, :args => args })
end