Class: Frontend::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/frontend/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_email_templateObject



25
26
27
28
# File 'lib/generators/frontend/install/install_generator.rb', line 25

def copy_email_template
  say_status("copying", "Email Template", :green)
  copy_file "app/views/layouts/mail.html.haml", "app/views/layouts/mail.html.haml"
end

#copy_servicesObject



10
11
12
13
# File 'lib/generators/frontend/install/install_generator.rb', line 10

def copy_services
  say_status("copying", "Blank Services File", :green)
  copy_file "config/services.yml", "config/services.yml"
end

#copy_settingsObject



15
16
17
18
# File 'lib/generators/frontend/install/install_generator.rb', line 15

def copy_settings
  say_status("copying", "Blank Settings File", :green)
  copy_file "config/settings.yml", "config/settings.yml"
end

#copy_variablesObject



20
21
22
23
# File 'lib/generators/frontend/install/install_generator.rb', line 20

def copy_variables
  say_status("copying", "Blank Variables File", :green)
  copy_file "vendor/assets/stylesheets/variables.css.sass", "app/assets/stylesheets/variables.css.sass"
end