Sha256: 45c3b7c965cb683134f97b802fe891ee13b3d097ea35d6c901e21e26606ff55f

Contents?: true

Size: 402 Bytes

Versions: 1

Compression:

Stored size: 402 Bytes

Contents

# frozen_string_literal: true

require 'open3'

module Stackeye
  module Tools
    class Cli

      def initialize(command)
        @command = command
      end

      def execute
        output, _status = Open3.capture2(@command)
        output
      end

      class << self
        def execute(command)
          klass = new(command)
          klass.execute
        end
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stackeye-0.1.0 lib/stackeye/tools/cli.rb