Class Amalgalite::Packer
In: lib/amalgalite/packer.rb
lib/amalgalite/packer.rb
Parent: Object

Pack items into an amalgalite database.

Methods

Attributes

dbfile  [R] 
dbfile  [R] 
options  [R] 
options  [R] 
packing_list  [R] 
packing_list  [R] 

Public Class methods

return the files in their dependency order for use for packing into a database

return the files in their dependency order for use for packing into a database

uncompress gzip data

uncompress gzip data

compress data

compress data

Create a new packer instance with the list of items to pack and all the options

Create a new packer instance with the list of items to pack and all the options

Public Instance methods

Make sure that the dbfile exists and has the appropriate schema.

Make sure that the dbfile exists and has the appropriate schema.

The SQL to create the table for storing ruby code

The SQL to create the table for storing ruby code

given a file, see if it can be found in the ruby load path, if so, return that full path

given a file, see if it can be found in the ruby load path, if so, return that full path

Make the manifest for packing

Make the manifest for packing

Given a list of files pack them into the associated database and table.

Given a list of files pack them into the associated database and table.

Stores all the .rb files in the list into the given database. The prefix is the file system path to remove from the front of the path on each file

manifest is an array of OpenStructs.

Stores all the .rb files in the list into the given database. The prefix is the file system path to remove from the front of the path on each file

manifest is an array of OpenStructs.

[Validate]