Sha256: a74830c0e8895fb329106cf39e34d5f4094b954cfbad65323cf83cc9d8eef5fb

Contents?: true

Size: 313 Bytes

Versions: 221

Compression:

Stored size: 313 Bytes

Contents

module Specinfra
  class HostInventory
    class Hostname < Base
      def get
        cmd = backend.command.get(:get_inventory_hostname)
        result = backend.run_command(cmd)

        if result.exit_status == 0
          result.stdout.strip
        else
          nil
        end
      end
    end
  end
end

Version data entries

221 entries across 221 versions & 3 rubygems

Version Path
specinfra-2.76.5 lib/specinfra/host_inventory/hostname.rb
specinfra-2.76.4 lib/specinfra/host_inventory/hostname.rb
specinfra-2.76.3 lib/specinfra/host_inventory/hostname.rb
specinfra-2.76.2 lib/specinfra/host_inventory/hostname.rb
specinfra-2.76.1 lib/specinfra/host_inventory/hostname.rb
specinfra-2.76.0 lib/specinfra/host_inventory/hostname.rb
specinfra-2.75.1 lib/specinfra/host_inventory/hostname.rb
specinfra-rb19-2.44.7 lib/specinfra/host_inventory/hostname.rb
specinfra-2.75.0 lib/specinfra/host_inventory/hostname.rb
specinfra-2.74.0 lib/specinfra/host_inventory/hostname.rb
specinfra-2.73.4 lib/specinfra/host_inventory/hostname.rb
specinfra-2.73.3 lib/specinfra/host_inventory/hostname.rb
specinfra-2.73.2 lib/specinfra/host_inventory/hostname.rb
specinfra-2.73.1 lib/specinfra/host_inventory/hostname.rb
specinfra-2.73.0 lib/specinfra/host_inventory/hostname.rb
specinfra-2.72.1 lib/specinfra/host_inventory/hostname.rb
specinfra-2.72.0 lib/specinfra/host_inventory/hostname.rb
specinfra-2.71.3 lib/specinfra/host_inventory/hostname.rb
specinfra-2.71.2 lib/specinfra/host_inventory/hostname.rb
specinfra-2.71.1 lib/specinfra/host_inventory/hostname.rb