class Startblock::AppGenerator
Public Instance Methods
configure_app()
click to toggle source
# File lib/startblock/generators/app_generator.rb, line 82 def configure_app say 'Configuring app' build :configure_action_mailer build :setup_foreman end
create_startblock_views()
click to toggle source
# File lib/startblock/generators/app_generator.rb, line 74 def create_startblock_views say 'Creating Startblock views' build :create_partials_directory build :create_shared_flashes build :create_shared_javascripts build :create_application_layout end
customize_applicationrb()
click to toggle source
# File lib/startblock/generators/app_generator.rb, line 54 def customize_applicationrb say 'Configuring application.rb' build :disable_helper_generation end
customize_gemfile()
click to toggle source
# File lib/startblock/generators/app_generator.rb, line 40 def customize_gemfile build :replace_gemfile build :set_ruby_to_version_being_used bundle_command 'install' end
finish_template()
click to toggle source
Calls superclass method
# File lib/startblock/generators/app_generator.rb, line 15 def finish_template invoke :startblock_customization super end
outro()
click to toggle source
# File lib/startblock/generators/app_generator.rb, line 133 def outro say 'Congratulations! You just entered our startblock.' end
remove_routes_comment_lines()
click to toggle source
# File lib/startblock/generators/app_generator.rb, line 98 def remove_routes_comment_lines build :remove_routes_comment_lines end
run_bundle()
click to toggle source
# File lib/startblock/generators/app_generator.rb, line 137 def run_bundle # Let's not: We'll bundle manually at the right spot end
setup_database()
click to toggle source
# File lib/startblock/generators/app_generator.rb, line 113 def setup_database say 'Setting up database' if 'postgresql' == options[:database] build :use_postgres_config_template end build :create_database end
setup_development_environment()
click to toggle source
# File lib/startblock/generators/app_generator.rb, line 47 def setup_development_environment say 'Setting up the development environment' build :raise_on_delivery_errors build :raise_on_unpermitted_parameters build :provide_setup_script end
setup_git()
click to toggle source
# File lib/startblock/generators/app_generator.rb, line 107 def setup_git say 'Initializing git' build :gitignore_files build :init_git end
setup_javascripts()
click to toggle source
# File lib/startblock/generators/app_generator.rb, line 93 def setup_javascripts say "Set up javascripts" build :setup_javascripts end
setup_mixpanel()
click to toggle source
# File lib/startblock/generators/app_generator.rb, line 123 def setup_mixpanel say 'Setting up Mixpanel' build :setup_mixpanel end
setup_puma()
click to toggle source
# File lib/startblock/generators/app_generator.rb, line 102 def setup_puma say 'Setting up puma' build :copy_puma_config end
setup_rubocop()
click to toggle source
# File lib/startblock/generators/app_generator.rb, line 128 def setup_rubocop say "Setting up Rubocop" build :setup_rubocop end
setup_secret_token()
click to toggle source
# File lib/startblock/generators/app_generator.rb, line 69 def setup_secret_token say 'Moving secret token out of version control' build :setup_secret_token end
setup_staging_environment()
click to toggle source
# File lib/startblock/generators/app_generator.rb, line 64 def setup_staging_environment say 'Setting up the staging environment' build :setup_staging_environment end
setup_stylesheets()
click to toggle source
# File lib/startblock/generators/app_generator.rb, line 88 def setup_stylesheets say 'Set up stylesheets' build :setup_stylesheets end
setup_testing_environment()
click to toggle source
# File lib/startblock/generators/app_generator.rb, line 59 def setup_testing_environment say "Setting up the testing environment" build :configuring_test_helper end
startblock_customization()
click to toggle source
# File lib/startblock/generators/app_generator.rb, line 20 def startblock_customization invoke :customize_gemfile invoke :setup_development_environment invoke :setup_development_environment invoke :setup_testing_environment invoke :setup_staging_environment invoke :setup_secret_token invoke :create_startblock_views invoke :configure_app invoke :setup_stylesheets invoke :setup_javascripts invoke :remove_routes_comment_lines invoke :setup_puma invoke :setup_git invoke :setup_database invoke :setup_mixpanel invoke :setup_rubocop invoke :outro end
Protected Instance Methods
get_builder_class()
click to toggle source
# File lib/startblock/generators/app_generator.rb, line 143 def get_builder_class Startblock::AppBuilder end