module DockerJanitor::Bash

Public Class Methods

run_command(command) click to toggle source
# File lib/docker_janitor/shell.rb, line 16
def self.run_command(command)
  stdout = `bash -c "#{command}"`
  OpenStruct.new({
    success?: $?.exitstatus == 0,
    exitstatus: $?.exitstatus,
    stdout: stdout
  })
end