class SSHKit::Command
Public Instance Methods
with() { || ... }
click to toggle source
# File lib/sshkit/sudo/command.rb, line 7 def with(&_block) return yield if options[:user] env_string = environment_string return yield if env_string.empty? "( export #{env_string} ; #{yield} )" end