Class: Leather::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_bootstrap_variablesObject



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

def copy_bootstrap_variables
  copy_file("bootstrap_variables.css.scss", Rails.root.join("app", "assets", "stylesheets", "bootstrap_variables.css.scss"))
end

#copy_devise_viewsObject



9
10
11
# File 'lib/generators/leather/install/install_generator.rb', line 9

def copy_devise_views
  directory("views/devise", Rails.root.join("app", "views", "devise"))
end

#copy_high_voltage_configObject



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

def copy_high_voltage_config
  copy_file("high_voltage.rb", Rails.root.join("config", "initializers", "high_voltage.rb"))
end

#copy_navigationObject



17
18
19
# File 'lib/generators/leather/install/install_generator.rb', line 17

def copy_navigation
  copy_file("_navigation.html.haml", Rails.root.join("app", "views", "application", "_navigation.html.haml"))
end

#copy_pagesObject



13
14
15
# File 'lib/generators/leather/install/install_generator.rb', line 13

def copy_pages
  directory("views/pages", Rails.root.join("app", "views", "pages"))
end

#mountObject



5
6
7
# File 'lib/generators/leather/install/install_generator.rb', line 5

def mount
  route "mount Leather::Engine => '/'"
end