Method: RightDevelop::Utility::Shell#execute
- Defined in:
- lib/right_develop/utility/shell.rb
#execute(cmd, options = {}) ⇒ Integer
Overrides ::RightGit::Shell::Default#execute
99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
# File 'lib/right_develop/utility/shell.rb', line 99 def execute(cmd, = {}) = { :clean_bundler_env => true, :sudo => false }.merge() if [:sudo] fail "Not available in Windows" if is_windows? cmd = "sudo #{cmd}" unless ::Process.euid == 0 end # super execute. super(cmd, ) end |