Class: Refinery::CmsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
core/lib/generators/refinery/cms/cms_generator.rb

Instance Method Summary collapse

Instance Method Details

#generateObject



20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'core/lib/generators/refinery/cms/cms_generator.rb', line 20

def generate
  start_pretending?

  manage_roadblocks! unless self.options[:update]

  ensure_environments_are_sane!

  stop_pretending?

  append_gemfile!

  append_gitignore!

  append_asset_pipeline!

  forced_overwriting?

  copy_files!

  create_decorators!

  mount!

  run_additional_generators! if self.options[:fresh_installation]

  prepare_database!

  deploy_to_hosting?
end