Sha256: a2a0f48c461611bd92a7ac44c22797bc0100840fa16f428d5dce3966009607be
Contents?: true
Size: 928 Bytes
Versions: 5
Compression:
Stored size: 928 Bytes
Contents
require 'rails/generators/named_base' module Ixtlan module Generators class Base < Rails::Generators::Base argument :name, :type => :string, :required => false protected def generator_name raise "please overwrite generator_name" end public def create args = [] if name args << ARGV.shift else args << "configuration" end if defined? ::Ixtlan::Errors args << "errors_dir:string" args << "errors_from:string" args << "errors_to:string" end if defined? ::Ixtlan::Sessions args << "idle_session_timeout:integer" end if defined? ::Ixtlan::Audit args << "audit_keep_log:integer" end args << "--singleton" args += ARGV[0, 10000] || [] generate generator_name, *args end end end end
Version data entries
5 entries across 5 versions & 1 rubygems