Class: Redmine::Utils::System
- Inherits:
-
Object
- Object
- Redmine::Utils::System
- Defined in:
- lib/redmine/utils/system.rb
Instance Method Summary collapse
Instance Method Details
#execute(cmd) ⇒ Object
4 5 6 |
# File 'lib/redmine/utils/system.rb', line 4 def execute(cmd) Kernel.system cmd end |
#execute_and_return(cmd) ⇒ Object
8 9 10 |
# File 'lib/redmine/utils/system.rb', line 8 def execute_and_return(cmd) `#{cmd}`.force_encoding('utf-8') end |