summaryrefslogtreecommitdiff
path: root/lib/commands/default_command.rb
blob: 2d79646b908e74b7c2e9446db9988a917d947bb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'erb'
require 'ostruct'

module Booty
  class DefaultCommand
    def initialize(view_engine)
      @view_engine = view_engine
    end
    def matches?(request)
      true
    end
    def run(request)
      HtmlResponse.new(:template => "/404", :status => 404)
    end
    def command
      self
    end
  end
end