class TaaS::CommandExecuter

Public Class Methods

execute_command(dir, command) click to toggle source
# File lib/helper/command_executer.rb, line 3
def self.execute_command(dir, command)
  return nil if command.nil? || dir.nil? || command.empty? || dir.empty?
  Dir.chdir(dir)
  `#{command}`
end