Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (22 sloc) 539 Bytes
require 'generators/ixtlan/base'
module Ixtlan
module Generators
class AuditBase < Base
def create
args = []
if name
args << ARGV.shift
else
args << "audit"
end
args += ['login:string', 'message:string']
args += ARGV
args += ["--read-only", "--timestamps"]
generate generator_name, *args
end
def add_gem
gem 'ixtlan-audit' unless File.read('Gemfile') =~ /gem\s['"]ixtlan-audit['"]/
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.