class Utopia::Shell

This is designed to be used with the corresponding bake task.

Public Class Methods

new(context) click to toggle source
# File lib/utopia/shell.rb, line 32
def initialize(context)
        @context = context
        @app = nil
end

Public Instance Methods

app() click to toggle source
# File lib/utopia/shell.rb, line 37
def app
        @app ||= Rack::Builder.parse_file(
                File.expand_path('config.ru', @context.root)
        ).first
end
binding() click to toggle source
Calls superclass method
# File lib/utopia/shell.rb, line 47
def binding
        super
end
to_s() click to toggle source
# File lib/utopia/shell.rb, line 43
def to_s
        self.class.name
end