Sha256: 4f25ff73404db3675081c1537997b3dc50371c271d26c42f8776fc09918853bb

Contents?: true

Size: 326 Bytes

Versions: 64

Compression:

Stored size: 326 Bytes

Contents

module Serverspec::Type
  class Command < Base
    def stdout
      command_result.stdout
    end

    def stderr
      command_result.stderr
    end

    def exit_status
      command_result.exit_status.to_i
    end

    private
    def command_result()
      @command_result ||= @runner.run_command(@name)
    end
  end
end

Version data entries

64 entries across 64 versions & 2 rubygems

Version Path
serverspec-ruby19-2.24.3 lib/serverspec/type/command.rb
serverspec-2.37.2 lib/serverspec/type/command.rb
serverspec-2.37.1 lib/serverspec/type/command.rb
serverspec-2.37.0 lib/serverspec/type/command.rb
serverspec-2.36.1 lib/serverspec/type/command.rb
serverspec-2.36.0 lib/serverspec/type/command.rb
serverspec-2.35.0 lib/serverspec/type/command.rb
serverspec-2.34.0 lib/serverspec/type/command.rb
serverspec-2.33.0 lib/serverspec/type/command.rb
serverspec-2.32.0 lib/serverspec/type/command.rb
serverspec-2.31.1 lib/serverspec/type/command.rb
serverspec-2.31.0 lib/serverspec/type/command.rb
serverspec-2.30.1 lib/serverspec/type/command.rb
serverspec-2.30.0 lib/serverspec/type/command.rb
serverspec-2.29.2 lib/serverspec/type/command.rb
serverspec-2.29.1 lib/serverspec/type/command.rb
serverspec-2.29.0 lib/serverspec/type/command.rb
serverspec-2.28.0 lib/serverspec/type/command.rb
serverspec-2.27.0 lib/serverspec/type/command.rb
serverspec-2.26.0 lib/serverspec/type/command.rb