Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: c8041a11ac
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (23 sloc) 0.659 kB
require 'generators/ixtlan/base'
module Ixtlan
module Generators
class ErrorDumpsBase < Base
def create
args = []
if name
args << ARGV.shift
else
args << "error"
end
args += ['message:string', 'request:text', 'response:text', 'session:text', 'parameters:text', 'clazz:string', 'backtrace:text']
args += ARGV
args << "--read-only"
args << "--timestamps"
generate generator_name, *args
end
def add_gem
gem 'ixtlan-error-handler' unless File.read('Gemfile') =~ /gem\s['"]ixtlan-error-handler['"]/
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.