Class: Rolemodel::TailoredSelectGenerator

Inherits:
GeneratorBase
  • Object
show all
Defined in:
lib/generators/rolemodel/tailored_select/tailored_select_generator.rb

Instance Method Summary collapse

Instance Method Details

#add_simple_form_inputObject



14
15
16
17
18
19
20
# File 'lib/generators/rolemodel/tailored_select/tailored_select_generator.rb', line 14

def add_simple_form_input
  return unless simple_form?

  say 'Installing the Tailored Select SimpleForm input', :green

  copy_file 'app/inputs/tailored_select_input.rb'
end

#add_tailored_select_packageObject



7
8
9
10
11
12
# File 'lib/generators/rolemodel/tailored_select/tailored_select_generator.rb', line 7

def add_tailored_select_package
  say 'Installing Tailored Select package', :green

  ensure_yarn
  run 'yarn add @rolemodel/tailored-select'
end