Class: Generapp::AppBuilder
Overview
Rails app builder customizations
Instance Method Summary
collapse
#create_database, #use_postgres_config_template
#configure_puma, #generate_devise, #rspec_task, #set_up_foreman, #setup_default_rake_task
#create_application_layout, #create_shared_directory, #create_shared_flashes, #create_shared_head, #create_shared_javascripts
#configure_newrelic, #configure_rack_timeout
#configure_ci, #configure_coverage, #configure_rspec, #enable_database_cleaner, #enable_devise_tests, #generate_rspec, #provide_shoulda_matchers_config, #spec_folders
#add_bullet_gem_configuration, #add_secrets, #bullet_configuration, #configure_dalli, #configure_generators, #generapp_generators, #generate_annotate, #raise_on_delivery_errors
Instance Method Details
#gemfile ⇒ Object
21
22
23
|
# File 'lib/generapp/app_builder.rb', line 21
def gemfile
template 'Gemfile.erb', 'Gemfile'
end
|
#gitignore ⇒ Object
17
18
19
|
# File 'lib/generapp/app_builder.rb', line 17
def gitignore
template 'generapp_gitignore', '.gitignore'
end
|
#init_git ⇒ Object
35
36
37
|
# File 'lib/generapp/app_builder.rb', line 35
def init_git
git :init
end
|
#readme ⇒ Object
13
14
15
|
# File 'lib/generapp/app_builder.rb', line 13
def readme
template 'README.md.erb', 'README.md'
end
|
#set_ruby_version ⇒ Object
25
26
27
|
# File 'lib/generapp/app_builder.rb', line 25
def set_ruby_version
create_file '.ruby-version', "#{Generapp::RUBY_VERSION}\n"
end
|
#setup_bundler_audit ⇒ Object
39
40
41
42
43
|
# File 'lib/generapp/app_builder.rb', line 39
def setup_bundler_audit
copy_file 'tasks/bundler_audit.rake',
'lib/tasks/bundler_audit.rake'
append_file 'Rakefile', "\ntask default: 'bundler:audit'\n"
end
|
#setup_spring ⇒ Object
45
46
47
|
# File 'lib/generapp/app_builder.rb', line 45
def setup_spring
bundle_command 'exec spring binstub --all'
end
|
#setup_stylesheets ⇒ Object
29
30
31
32
33
|
# File 'lib/generapp/app_builder.rb', line 29
def setup_stylesheets
remove_file 'app/assets/stylesheets/application.css'
copy_file 'application.scss',
'app/assets/stylesheets/application.scss'
end
|