lib/inspec/resources/docker_image.rb
def method_missing(*hash_keys)
      # User can test the low-level inspect information in three ways:
      # Way 1: Serverspec style: its(['Config.Cmd']) { should include some_value }
      #        here, the value for hash_keys recieved is [:[], "Config.Cmd"]
      # Way 2: InSpec style: its(['Config','Cmd']) { should include some_value }
      #        here, the value for hash_keys recieved is [:[], "Config", "Cmd"]
      # Way 3: Mix of both: its(['GraphDriver.Data','MergedDir']) { should include some_value }
      #        here, the value for hash_keys recieved is [:[], "GraphDriver.Data", "MergedDir"]

      # hash_keys are passed to this method to evaluate the value
      image_hash_inspection(hash_keys)
    end
# method_missing handles when hash_keys are invoked to check information obtained on docker inspect [image_name]
method_missing handles when hash_keys are invoked to check information obtained on docker inspect [image_name]
method_missing handles when hash_keys are invoked to check information obtained on docker inspect [ image_name ]
def method_missing(*hash_keys)
      image_hash_inspection(hash_keys)
    end
def method_missing ( * hash_keys ) image_hash_inspection ( hash_keys ) end
method_missing handles when hash_keys are invoked to check information obtained on docker inspect [image_name]
method_missing handles when hash_keys are invoked to check information obtained on docker inspect [ image_name ]
# User can test the low-level inspect information in three ways: # Way 1: Serverspec style: its(['Config.Cmd']) { should include some_value } #        here, the value for hash_keys recieved is [:[], "Config.Cmd"] # Way 2: InSpec style: its(['Config','Cmd']) { should include some_value } #        here, the value for hash_keys recieved is [:[], "Config", "Cmd"] # Way 3: Mix of both: its(['GraphDriver.Data','MergedDir']) { should include some_value } #        here, the value for hash_keys recieved is [:[], "GraphDriver.Data", "MergedDir"] # hash_keys are passed to this method to evaluate the value
hash_keys