Skip to content

Instantly share code, notes, and snippets.

@ttanimichi
Created May 13, 2016 10:43
Show Gist options
  • Save ttanimichi/5d02defbe5edec28219795e44ebb1280 to your computer and use it in GitHub Desktop.
Save ttanimichi/5d02defbe5edec28219795e44ebb1280 to your computer and use it in GitHub Desktop.
require 'sshkit'
require 'sshkit/dsl'
include SSHKit::DSL
on 'freeza@freeza.aiming-inc.biz' do
puts capture(:ls, '-l')
end
# total 12
# drwxrwxr-x 5 freeza freeza 4096 May 13 16:32 example
# drwxrwxr-x 5 freeza freeza 4096 May 13 16:19 freeza
# -rw-r--r-- 1 freeza freeza 2333 May 12 22:03 google.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment