Method: WebResourceBundler::FileManager#get_content

Defined in:
lib/web_resource_bundler/file_manager.rb

#get_content(relative_path) ⇒ Object



26
27
28
29
# File 'lib/web_resource_bundler/file_manager.rb', line 26

def get_content(relative_path)
  raise Exceptions::ResourceNotFoundError.new(full_path(relative_path)) unless exist?(relative_path)
  File.read(full_path(relative_path))
end