Sha256: 7f6e483bfbef32fadbe3fdf1074ca294756de4849749e4dc5944eeed844f7759

Contents?: true

Size: 581 Bytes

Versions: 161

Compression:

Stored size: 581 Bytes

Contents

require 'spec_helper'

set :os, :family => 'linux'

describe get_command(:get_inventory_memory) do
  it { should eq 'cat /proc/meminfo' }
end

describe get_command(:get_inventory_cpu) do
  it { should eq 'cat /proc/cpuinfo' }
end

describe get_command(:get_inventory_kernel) do
  it { should eq 'uname -s -r' }
end

describe get_command(:get_inventory_block_device) do
  block_device_dirs = '/sys/block/*/{size,removable,device/{model,rev,state,timeout,vendor},queue/rotational}'
  it { should eq "for f in $(ls #{block_device_dirs}); do echo -e \"${f}\t$(cat ${f})\"; done" }
end

Version data entries

161 entries across 161 versions & 2 rubygems

Version Path
specinfra-2.76.8 spec/command/linux/inventory_spec.rb
specinfra-2.76.7 spec/command/linux/inventory_spec.rb
specinfra-2.76.6 spec/command/linux/inventory_spec.rb
specinfra-2.76.5 spec/command/linux/inventory_spec.rb
specinfra-2.76.4 spec/command/linux/inventory_spec.rb
specinfra-2.76.3 spec/command/linux/inventory_spec.rb
specinfra-2.76.2 spec/command/linux/inventory_spec.rb
specinfra-2.76.1 spec/command/linux/inventory_spec.rb
specinfra-2.76.0 spec/command/linux/inventory_spec.rb
specinfra-2.75.1 spec/command/linux/inventory_spec.rb
specinfra-rb19-2.44.7 spec/command/linux/inventory_spec.rb
specinfra-2.75.0 spec/command/linux/inventory_spec.rb
specinfra-2.74.0 spec/command/linux/inventory_spec.rb
specinfra-2.73.4 spec/command/linux/inventory_spec.rb
specinfra-2.73.3 spec/command/linux/inventory_spec.rb
specinfra-2.73.2 spec/command/linux/inventory_spec.rb
specinfra-2.73.1 spec/command/linux/inventory_spec.rb
specinfra-2.73.0 spec/command/linux/inventory_spec.rb
specinfra-2.72.1 spec/command/linux/inventory_spec.rb
specinfra-2.72.0 spec/command/linux/inventory_spec.rb