module Notebook
Constants
- VERSION
Public Class Methods
adapter()
click to toggle source
Return the current storage adapter in use
# File lib/notebook.rb, line 11 def self.adapter @adapter || Notebook::StorageAdapters::Filesystem end
adapter=(adapter)
click to toggle source
Set the storage adapter constant (ex: Notebook::StorageAdapters::Filesystem
) to use
# File lib/notebook.rb, line 16 def self.adapter=(adapter) @adapter = adapter end
public_directory()
click to toggle source
Return the current filesystem storage directory in use
# File lib/notebook.rb, line 21 def self.public_directory @public_directory || (Pathname.pwd + 'public') end
public_directory=(directory)
click to toggle source
Set the storage filesystem directory to use
# File lib/notebook.rb, line 26 def self.public_directory=(directory) @public_directory = directory end
s3_options()
click to toggle source
Return the current S3 options
# File lib/notebook/storage_adapters/s3.rb, line 6 def self.s3_options @s3_options || {} end
s3_options=(s3_options)
click to toggle source
Allow the user to specify S3 options
# File lib/notebook/storage_adapters/s3.rb, line 11 def self.s3_options=(s3_options) @s3_options = s3_options end