Class: Prop::AppGenerator
- Inherits:
-
Rails::Generators::AppGenerator
- Object
- Rails::Generators::AppGenerator
- Prop::AppGenerator
- Defined in:
- lib/prop/generators/app_generator.rb
Instance Method Summary collapse
- #configure_app ⇒ Object
- #copy_libraries ⇒ Object
- #copy_miscellaneous_files ⇒ Object
- #create_github_repo ⇒ Object
- #create_guard_file ⇒ Object
- #create_heroku_apps ⇒ Object
- #create_prop_views ⇒ Object
- #customize_error_pages ⇒ Object
- #customize_gemfile ⇒ Object
- #finish_template ⇒ Object
- #init_git ⇒ Object
- #initialize_zeus ⇒ Object
- #outro ⇒ Object
- #prop_customizations ⇒ Object
- #remove_garbage_files ⇒ Object
- #remove_routes_comment_lines ⇒ Object
- #setup_application_js ⇒ Object
- #setup_backbone ⇒ Object
- #setup_backbone_rails ⇒ Object
- #setup_coffeescript ⇒ Object
- #setup_database ⇒ Object
- #setup_development_environment ⇒ Object
- #setup_devise ⇒ Object
- #setup_foundation ⇒ Object
- #setup_git ⇒ Object
- #setup_gitignore ⇒ Object
- #setup_google_places ⇒ Object
- #setup_modernizr ⇒ Object
- #setup_production_environment ⇒ Object
- #setup_staging_environment ⇒ Object
- #setup_stylesheets ⇒ Object
- #setup_test_environment ⇒ Object
- #start_zeus ⇒ Object
Instance Method Details
#configure_app ⇒ Object
132 133 134 135 136 137 138 139 140 141 142 143 144 |
# File 'lib/prop/generators/app_generator.rb', line 132 def configure_app say 'Configuring app' build :configure_action_mailer build :blacklist_active_record_attributes build :configure_strong_parameters build :configure_time_zone build :configure_time_formats build :configure_rack_timeout build :disable_xml_params build :setup_default_rake_task build :configure_unicorn build :setup_foreman end |
#copy_libraries ⇒ Object
192 193 194 195 |
# File 'lib/prop/generators/app_generator.rb', line 192 def copy_libraries say 'Copying libraries' build :copy_libraries end |
#copy_miscellaneous_files ⇒ Object
197 198 199 200 |
# File 'lib/prop/generators/app_generator.rb', line 197 def copy_miscellaneous_files say 'Copying miscellaneous support files' build :copy_miscellaneous_files end |
#create_github_repo ⇒ Object
179 180 181 182 |
# File 'lib/prop/generators/app_generator.rb', line 179 def create_github_repo say 'Creating Github repo' build :create_github_repo, "#{app_name}" end |
#create_guard_file ⇒ Object
156 157 158 159 |
# File 'lib/prop/generators/app_generator.rb', line 156 def create_guard_file say 'Creating Guardfile' build :setup_guardfile end |
#create_heroku_apps ⇒ Object
171 172 173 174 175 176 177 |
# File 'lib/prop/generators/app_generator.rb', line 171 def create_heroku_apps if [:heroku] say 'Creating Heroku apps' build :create_heroku_apps build :set_heroku_remotes end end |
#create_prop_views ⇒ Object
118 119 120 121 122 123 124 |
# File 'lib/prop/generators/app_generator.rb', line 118 def create_prop_views say 'Creating prop views' build :create_partials_directory build :create_shared_flashes build :create_shared_javascripts build :create_application_layout end |
#customize_error_pages ⇒ Object
202 203 204 205 |
# File 'lib/prop/generators/app_generator.rb', line 202 def customize_error_pages say 'Customizing the 500/404/422 pages' build :customize_error_pages end |
#customize_gemfile ⇒ Object
71 72 73 74 75 |
# File 'lib/prop/generators/app_generator.rb', line 71 def customize_gemfile build :replace_gemfile build :set_ruby_to_version_being_used bundle_command 'install' end |
#finish_template ⇒ Object
30 31 32 33 |
# File 'lib/prop/generators/app_generator.rb', line 30 def finish_template invoke :prop_customizations super end |
#init_git ⇒ Object
188 189 190 |
# File 'lib/prop/generators/app_generator.rb', line 188 def init_git build :init_git end |
#initialize_zeus ⇒ Object
161 162 163 |
# File 'lib/prop/generators/app_generator.rb', line 161 def initialize_zeus build :init_zeus end |
#outro ⇒ Object
237 238 239 |
# File 'lib/prop/generators/app_generator.rb', line 237 def outro say 'Propped up.' end |
#prop_customizations ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/prop/generators/app_generator.rb', line 35 def prop_customizations invoke :remove_garbage_files invoke :customize_gemfile invoke :setup_database invoke :setup_development_environment invoke :setup_test_environment invoke :setup_production_environment invoke :setup_staging_environment invoke :setup_coffeescript invoke :configure_app invoke :setup_stylesheets invoke :copy_miscellaneous_files invoke :customize_error_pages invoke :remove_routes_comment_lines invoke :setup_modernizr invoke :setup_backbone invoke :setup_backbone_rails invoke :setup_foundation invoke :create_prop_views invoke :setup_application_js invoke :setup_google_places invoke :create_guard_file invoke :initialize_zeus invoke :setup_devise invoke :setup_git invoke :create_heroku_apps invoke :create_github_repo invoke :start_zeus invoke :outro end |
#remove_garbage_files ⇒ Object
66 67 68 69 |
# File 'lib/prop/generators/app_generator.rb', line 66 def remove_garbage_files build :remove_public_index build :remove_rails_logo_image end |
#remove_routes_comment_lines ⇒ Object
207 208 209 |
# File 'lib/prop/generators/app_generator.rb', line 207 def remove_routes_comment_lines build :remove_routes_comment_lines end |
#setup_application_js ⇒ Object
229 230 231 |
# File 'lib/prop/generators/app_generator.rb', line 229 def setup_application_js build :setup_application_js end |
#setup_backbone ⇒ Object
220 221 222 223 |
# File 'lib/prop/generators/app_generator.rb', line 220 def setup_backbone say 'Initializing backbone.js' build :setup_backbone end |
#setup_backbone_rails ⇒ Object
225 226 227 |
# File 'lib/prop/generators/app_generator.rb', line 225 def setup_backbone_rails build :setup_backbone_rails end |
#setup_coffeescript ⇒ Object
126 127 128 129 130 |
# File 'lib/prop/generators/app_generator.rb', line 126 def setup_coffeescript say 'Setting up CoffeeScript defaults' build :remove_turbolinks build :create_common_javascripts end |
#setup_database ⇒ Object
77 78 79 80 81 |
# File 'lib/prop/generators/app_generator.rb', line 77 def setup_database say 'Setting up database' build :use_postgres_config_template build :create_database end |
#setup_development_environment ⇒ Object
83 84 85 86 87 88 89 |
# File 'lib/prop/generators/app_generator.rb', line 83 def setup_development_environment say 'Setting up the development environment' build :raise_on_delivery_errors build :raise_on_unpermitted_parameters build :provide_setup_script build :configure_generators end |
#setup_devise ⇒ Object
113 114 115 116 |
# File 'lib/prop/generators/app_generator.rb', line 113 def setup_devise say 'Creating users, login, and facebook connect' build :setup_devise end |
#setup_foundation ⇒ Object
211 212 213 |
# File 'lib/prop/generators/app_generator.rb', line 211 def setup_foundation build :setup_foundation end |
#setup_git ⇒ Object
165 166 167 168 169 |
# File 'lib/prop/generators/app_generator.rb', line 165 def setup_git say 'Initializing git' invoke :setup_gitignore invoke :init_git end |
#setup_gitignore ⇒ Object
184 185 186 |
# File 'lib/prop/generators/app_generator.rb', line 184 def setup_gitignore build :gitignore_files end |
#setup_google_places ⇒ Object
151 152 153 154 |
# File 'lib/prop/generators/app_generator.rb', line 151 def setup_google_places say 'Integrating Google Places library' build :setup_google_places end |
#setup_modernizr ⇒ Object
215 216 217 218 |
# File 'lib/prop/generators/app_generator.rb', line 215 def setup_modernizr say 'Initializing modernizr.js' build :setup_modernizr end |
#setup_production_environment ⇒ Object
103 104 105 106 |
# File 'lib/prop/generators/app_generator.rb', line 103 def setup_production_environment say 'Setting up the production environment' build :configure_smtp end |
#setup_staging_environment ⇒ Object
108 109 110 111 |
# File 'lib/prop/generators/app_generator.rb', line 108 def setup_staging_environment say 'Setting up the staging environment' build :setup_staging_environment end |
#setup_stylesheets ⇒ Object
146 147 148 149 |
# File 'lib/prop/generators/app_generator.rb', line 146 def setup_stylesheets say 'Setting up stylesheets' build :setup_stylesheets end |
#setup_test_environment ⇒ Object
91 92 93 94 95 96 97 98 99 100 101 |
# File 'lib/prop/generators/app_generator.rb', line 91 def setup_test_environment say 'Setting up the test environment' build :enable_factory_girl_syntax build :test_factories_first build :generate_rspec build :configure_rspec build :use_rspec_binstub build :conifigure_background_jobs_for_rspec build :enable_database_cleaner build :configure_capybara_webkit end |
#start_zeus ⇒ Object
233 234 235 |
# File 'lib/prop/generators/app_generator.rb', line 233 def start_zeus build :start_zeus end |