Skip to content

Instantly share code, notes, and snippets.

@MaherSaif
Created July 23, 2009 20:47
Show Gist options
  • Save MaherSaif/153567 to your computer and use it in GitHub Desktop.
Save MaherSaif/153567 to your computer and use it in GitHub Desktop.
require 'communicator'
include Communicator
ls = Command.new('ls')
ls.execute().each do |l|
puts l
end
p ls.execute(['-l'])
ssh = Service.new('ssh')
puts ssh.status()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment