Sha256: af82ec016ea56ed258b73f2f13935665a37aea8190a00c9331c4bbdd85662850

Contents?: true

Size: 450 Bytes

Versions: 10

Compression:

Stored size: 450 Bytes

Contents

module Boxes
  module Testing
    module Command
      attr_reader :response

      def run_command(cmd)
        stdout = `#{cmd}`

        @response = Response.new(cmd, stdout, $?.exitstatus)
      end

      class Response
        attr_accessor :cmd, :stdout, :exit_status

        def initialize(cmd, stdout, exit_status)
          @cmd = cmd
          @stdout = stdout
          @exit_status = exit_status
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
boxes-3.7.0 lib/boxes/testing/command.rb
boxes-3.6.1 lib/boxes/testing/command.rb
boxes-3.6.0 lib/boxes/testing/command.rb
boxes-3.5.0 lib/boxes/testing/command.rb
boxes-3.4.0 lib/boxes/testing/command.rb
boxes-3.3.1 lib/boxes/testing/command.rb
boxes-3.3.0 lib/boxes/testing/command.rb
boxes-3.2.0 lib/boxes/testing/command.rb
boxes-3.1.0 lib/boxes/testing/command.rb
boxes-3.0.0 lib/boxes/testing/command.rb