class Rails::AppBuilder

what those operations do so you can create another template action.
Gemfile, README, or JavaScript files, without needing to know exactly
This allows you to override entire operations, like the creation of the
generator.
generator without being forced to reverse the operations of the default
The application builder allows you to override elements of the application

def app

def app
  directory 'app'
  keep_file  'app/assets/images'
  keep_file  'app/mailers'
  keep_file  'app/models'
  keep_file  'app/controllers/concerns'
  keep_file  'app/models/concerns'
end

def bin

def bin
  directory "bin" do |content|
    "#{shebang}\n" + content
  end
  chmod "bin", 0755 & ~File.umask, verbose: false
end

def config

def config
  empty_directory "config"
  inside "config" do
    template "routes.rb"
    template "application.rb"
    template "environment.rb"
    directory "environments"
    directory "initializers"
    directory "locales"
  end
end

def configru

def configru
  template "config.ru"
end

def database_yml

def database_yml
  template "config/databases/#{options[:database]}.yml", "config/database.yml"
end

def db

def db
  directory "db"
end

def gemfile

def gemfile
  template "Gemfile"
end

def gitignore

def gitignore
  copy_file "gitignore", ".gitignore"
end

def lib

def lib
  empty_directory 'lib'
  empty_directory_with_keep_file 'lib/tasks'
  empty_directory_with_keep_file 'lib/assets'
end

def log

def log
  empty_directory_with_keep_file 'log'
end

def public_directory

def public_directory
  directory "public", "public", recursive: false
end

def rakefile

def rakefile
  template "Rakefile"
end

def readme

def readme
  copy_file "README.rdoc", "README.rdoc"
end

def test

def test
  empty_directory_with_keep_file 'test/fixtures'
  empty_directory_with_keep_file 'test/controllers'
  empty_directory_with_keep_file 'test/mailers'
  empty_directory_with_keep_file 'test/models'
  empty_directory_with_keep_file 'test/helpers'
  empty_directory_with_keep_file 'test/integration'
  template 'test/test_helper.rb'
end

def tmp

def tmp
  empty_directory "tmp/cache"
  empty_directory "tmp/cache/assets"
end

def vendor

def vendor
  vendor_javascripts
  vendor_stylesheets
end

def vendor_javascripts

def vendor_javascripts
  empty_directory_with_keep_file 'vendor/assets/javascripts'
end

def vendor_stylesheets

def vendor_stylesheets
  empty_directory_with_keep_file 'vendor/assets/stylesheets'
end