This repository has been archived by the owner. It is now read-only.
Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (14 sloc) 465 Bytes
#!/usr/bin/env ruby
require 'rubygems'
require 'rubigen'
if %w(-v --version).include? ARGV.first
require 'codex/version'
puts "#{File.basename($0)} #{Codex::VERSION::STRING}"
exit(0)
end
require 'rubigen/scripts/generate'
source = RubiGen::PathSource.new(:application,
File.join(File.dirname(__FILE__), "../app_generators"))
RubiGen::Base.reset_sources
RubiGen::Base.append_sources source
RubiGen::Scripts::Generate.new.run(ARGV, :generator => 'codex')