Module: Serverspec::SshHelper
- Defined in:
- lib/serverspec/helper.rb
Instance Method Summary collapse
Instance Method Details
#do_check(cmd, opt = {}) ⇒ Object
5 6 7 8 |
# File 'lib/serverspec/helper.rb', line 5 def do_check(cmd, opt={}) cmd = "sudo #{cmd}" if not RSpec.configuration.ssh.[:user] == 'root' ssh_exec!(cmd) end |