Sha256: ab9c373f771c10b9269c5074c407acf1efb6d924f683ffa23ebf75f130797b5c
Contents?: true
Size: 1.52 KB
Versions: 1
Compression:
Stored size: 1.52 KB
Contents
module Bowline::Generators class ApplicationGenerator < NamedGenerator desc <<-DESC Generates a new application. DESC def app_id ['bowline', name].join('.') end def destination_root File.join(@destination_root, base_name) end first_argument :name, :required => true, :desc => "application name" empty_directory :tmp, "tmp" empty_directory :vendor, "vendor" empty_directory :lib, "lib" empty_directory :db, "db" empty_directory :build, "build" empty_directory :log, "log" template :rakefile, "Rakefile", "Rakefile" file :gitignore, "gitignore", ".gitignore" glob! "script" glob! "public" file :jquery, "../assets/jquery.js", "public/javascripts/jquery.js" file :chainjs, "../assets/jquery.chain.js", "public/javascripts/jquery.chain.js" file :bowlinejs, "../assets/jquery.bowline.js", "public/javascripts/jquery.bowline.js" empty_directory :app, "app" empty_directory :models, "app/models" empty_directory :binders, "app/binders" empty_directory :config, "config" template :environment, "config/environment.rb", "config/environment.rb" template :tiapp, "config/tiapp.xml", "config/tiapp.xml" ["application.yml", "database.yml", "manifest", "boot.rb"].each {|action| action = File.join('config', action) file(action.downcase.gsub(/[^a-z0-9]+/, '_').to_sym, action, action) } end add :app, ApplicationGenerator end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
maccman-bowline-0.1.1 | lib/bowline/generators/application.rb |