class Redmine::Utils::System
Public Instance Methods
execute(cmd)
click to toggle source
# File lib/redmine/utils/system.rb, line 4 def execute(cmd) Kernel.system cmd end
execute_and_return(cmd)
click to toggle source
# File lib/redmine/utils/system.rb, line 8 def execute_and_return(cmd) `#{cmd}`.force_encoding('utf-8') end