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.67.0 spec/command/linux/inventory_spec.rb
specinfra-2.66.9 spec/command/linux/inventory_spec.rb
specinfra-2.66.8 spec/command/linux/inventory_spec.rb
specinfra-2.66.7 spec/command/linux/inventory_spec.rb
specinfra-2.66.6 spec/command/linux/inventory_spec.rb
specinfra-2.66.5 spec/command/linux/inventory_spec.rb
specinfra-2.66.4 spec/command/linux/inventory_spec.rb
specinfra-2.66.3 spec/command/linux/inventory_spec.rb
specinfra-2.66.2 spec/command/linux/inventory_spec.rb
specinfra-2.66.1 spec/command/linux/inventory_spec.rb
specinfra-2.66.0 spec/command/linux/inventory_spec.rb
specinfra-2.65.0 spec/command/linux/inventory_spec.rb
specinfra-2.64.0 spec/command/linux/inventory_spec.rb
specinfra-2.63.3 spec/command/linux/inventory_spec.rb
specinfra-2.63.2 spec/command/linux/inventory_spec.rb
specinfra-2.63.1 spec/command/linux/inventory_spec.rb
specinfra-2.63.0 spec/command/linux/inventory_spec.rb
specinfra-2.62.0 spec/command/linux/inventory_spec.rb
specinfra-2.61.3 spec/command/linux/inventory_spec.rb
specinfra-2.61.2 spec/command/linux/inventory_spec.rb