Sha256: 22a8ce4642f68c182e9e84971011e64cfca02a1d2fdb50d9b81f824c89c9c139
Contents?: true
Size: 846 Bytes
Versions: 1
Compression:
Stored size: 846 Bytes
Contents
require 'rails/generators' module Straptible module Rails module Builders class Base < ::Rails::AppBuilder def readme template 'README.md.tt' end def rakefile template 'Rakefile.tt' end def vendor # No-op (don't create vendor/ directory) end def db empty_directory_with_keep_file 'db' end def leftovers rspec icons end def rspec create_file '.rspec', '--color --format documentation' copy_file 'spec_helper.rb', 'spec/spec_helper.rb' end def icons remove_file 'public/favicon.ico' copy_file 'favicon.ico', 'public/favicon.ico' copy_file 'icon-72.png', 'public/icon-72.png' end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
straptible-0.1.0 | lib/straptible/rails/builders/base.rb |