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

Version Path
specinfra-2.91.0 spec/command/linux/inventory_spec.rb
specinfra-2.90.1 spec/command/linux/inventory_spec.rb
specinfra-2.90.0 spec/command/linux/inventory_spec.rb
specinfra-2.89.0 spec/command/linux/inventory_spec.rb
specinfra-2.88.2 spec/command/linux/inventory_spec.rb
specinfra-2.88.1 spec/command/linux/inventory_spec.rb
specinfra-2.88.0 spec/command/linux/inventory_spec.rb
specinfra-2.87.2 spec/command/linux/inventory_spec.rb
specinfra-2.87.1 spec/command/linux/inventory_spec.rb
specinfra-2.87.0 spec/command/linux/inventory_spec.rb
specinfra-2.86.0 spec/command/linux/inventory_spec.rb
specinfra-2.85.1 spec/command/linux/inventory_spec.rb
specinfra-2.85.0 spec/command/linux/inventory_spec.rb
specinfra-2.84.1 spec/command/linux/inventory_spec.rb
specinfra-2.84.0 spec/command/linux/inventory_spec.rb
specinfra-2.83.4 spec/command/linux/inventory_spec.rb
specinfra-2.83.3 spec/command/linux/inventory_spec.rb