Created
January 1, 2014 23:16
-
-
Save mattconnolly/8212674 to your computer and use it in GitHub Desktop.
sshkit within not applied to non-mapped commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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