Skip to content

Instantly share code, notes, and snippets.

@mattconnolly
Created January 1, 2014 23:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattconnolly/8212674 to your computer and use it in GitHub Desktop.
Save mattconnolly/8212674 to your computer and use it in GitHub Desktop.
sshkit within not applied to non-mapped commands
require 'sshkit'
require 'sshkit/dsl'
on 'example.com', user: 'matt' do
within('current') do
puts "this works as expected:"
puts capture :ls
puts "this does not get executed in the 'current' directory:"
puts capture 'ls -l'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment