Class: YMDT::System

Inherits:
Object
  • Object
show all
Defined in:
lib/ymdt.rb

Class Method Summary collapse

Class Method Details

.execute(command, params = {}) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/ymdt.rb', line 6

def self.execute(command, params={})
  if params[:return]
    `#{command}`
  else
    system command
  end
end