platform_simulation_specs/common/ohai_plugin_common.rb
def push(param, value)
        @instances ||= []
        @instances[0] ||= {}
        current = {}
        current = @instances.pop if @instances.last[param].nil?
        current[param] = value
        @instances << current
      end
#DSL - make a list of hashes with
make a list of hashes with
make a list of hashes with
def push(param, value)
        @instances ||= []
        @instances[0] ||= {}
        current = {}
        current = @instances.pop if @instances.last[param].nil?
        current[param] = value
        @instances << current
      end
def push ( param , value ) @instances ||= [ ] @instances [ 0 ] ||= { } current = { } current = @instances . pop if @instances . last [ param ] . nil? current [ param ] = value @instances << current end
DSL - make a list of hashes with
DSL - make a list of hashes with
param
value