Method: Avm::Docker::Image#read_entry

Defined in:
lib/avm/docker/image.rb

#read_entry(path, options = {}) ⇒ Object



44
45
46
47
48
49
50
# File 'lib/avm/docker/image.rb', line 44

def read_entry(path, options = {})
  method = path.gsub('.', '_')
  return send(method) if respond_to?(path, true)
  return instance.read_entry(path, options) if respond_to?(:instance)

  raise "Method \"#{method}\" not found for entry \"#{path}\""
end