Sha256: 1b3cfea3507e0dd4930f63316bbd8b5f95da55242732d8864c5918e4b81588b5

Contents?: true

Size: 509 Bytes

Versions: 1

Compression:

Stored size: 509 Bytes

Contents

require 'redis'
require 'pathname'

require 'wolverine/version'
require 'wolverine/configuration'
require 'wolverine/script'
require 'wolverine/path_component'

module Wolverine
  def self.config
    @config ||= Configuration.new
  end

  def self.redis
    config.redis
  end

  def self.root_directory
    @root_directory ||= PathComponent.new(config.script_path)
  end

  def self.method_missing sym, *args
    root_directory.send(sym, *args) 
  rescue PathComponent::MissingTemplate
    super 
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wolverine-0.1.0 lib/wolverine.rb