Class: Terrazzo::Generators::EjectGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/terrazzo/eject/eject_generator.rb

Instance Method Summary collapse

Instance Method Details

#ejectObject



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/generators/terrazzo/eject/eject_generator.rb', line 14

def eject
  case category
  when "fields"
    eject_field
  when "components"
    eject_component
  when "ui"
    eject_ui
  when "pages"
    eject_page
  when "navigation"
    eject_navigation
  else
    say_status :error, "Unknown category '#{category}'. Use fields/, components/, ui/, pages/, or navigation", :red
  end
end