Sha256: 0e90b42ba4d91e600c7fe7740a22170ffd007c94d2a8190725e2629b9d416357
Contents?: true
Size: 591 Bytes
Versions: 17
Compression:
Stored size: 591 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 %Q[bash -c 'for f in $(ls #{block_device_dirs}); do echo -e "${f}\t$(cat ${f})"; done'] } end
Version data entries
17 entries across 17 versions & 1 rubygems