Class: Refinery::EngineGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Includes:
ExtensionGeneration
Defined in:
lib/generators/refinery/engine/engine_generator.rb

Instance Method Summary collapse

Methods included from ExtensionGeneration

#attributes_for_translation_table, #extension_class_name, #extension_name, #extension_plural_class_name, #extension_plural_name, #image_attributes, included, #localized?, #localized_attributes, #names_for_attr_accessible, #namespacing, #resource_attributes, #string_attributes

Instance Method Details

#generateObject



20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/generators/refinery/engine/engine_generator.rb', line 20

def generate
  sanity_check!

  evaluate_templates!

  unless options[:pretend]
    merge_locales!

    copy_or_merge_seeds!

    append_extension_to_gemfile!
  end

  finalize_extension!
end

#skip_frontend?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/generators/refinery/engine/engine_generator.rb', line 16

def skip_frontend?
  options[:skip_frontend]
end