Method: TaaS::CommandExecuter.execute_command
- Defined in:
- lib/helper/command_executer.rb
.execute_command(dir, command) ⇒ Object
3 4 5 6 7 |
# 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 |