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.83.2 spec/command/linux/inventory_spec.rb
specinfra-2.83.1 spec/command/linux/inventory_spec.rb
specinfra-2.83.0 spec/command/linux/inventory_spec.rb
specinfra-2.82.25 spec/command/linux/inventory_spec.rb
specinfra-2.82.24 spec/command/linux/inventory_spec.rb
specinfra-2.82.23 spec/command/linux/inventory_spec.rb
specinfra-2.82.22 spec/command/linux/inventory_spec.rb
specinfra-2.82.21 spec/command/linux/inventory_spec.rb
specinfra-2.82.20 spec/command/linux/inventory_spec.rb
specinfra-2.82.19 spec/command/linux/inventory_spec.rb
specinfra-2.82.18 spec/command/linux/inventory_spec.rb
specinfra-2.82.17 spec/command/linux/inventory_spec.rb
specinfra-2.82.16 spec/command/linux/inventory_spec.rb
specinfra-2.82.15 spec/command/linux/inventory_spec.rb
specinfra-2.82.14 spec/command/linux/inventory_spec.rb
specinfra-2.82.13 spec/command/linux/inventory_spec.rb
specinfra-2.82.12 spec/command/linux/inventory_spec.rb
specinfra-2.82.11 spec/command/linux/inventory_spec.rb
specinfra-2.82.10 spec/command/linux/inventory_spec.rb
specinfra-2.82.9 spec/command/linux/inventory_spec.rb