Sha256: ad250a2aa5c8862268294e5e8938ac0e89eab216240e506524844f8219cf4953

Contents?: true

Size: 290 Bytes

Versions: 4

Compression:

Stored size: 290 Bytes

Contents

module CodeKindly
  module Utils
    class Shell
      class << self
        def run (command)
          require "open3"
          command = command.join(" ") if command.is_a?(Array)
          stdout_str, stderr_str, status = Open3.capture3(command)
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
codekindly-utils-0.0.5 lib/code_kindly/utils/shell.rb
codekindly-utils-0.0.4 lib/code_kindly/utils/shell.rb
codekindly-utils-0.0.3 lib/code_kindly/utils/shell.rb
codekindly-utils-0.0.2 lib/code_kindly/utils/shell.rb