class Leather::InstallGenerator

Public Instance Methods

copy_bootstrap_variables() click to toggle source
# 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_views() click to toggle source
# 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_config() click to toggle source
# 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_navigation() click to toggle source
# 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_pages() click to toggle source
# File lib/generators/leather/install/install_generator.rb, line 13
def copy_pages
  directory("views/pages", Rails.root.join("app", "views", "pages"))
end
mount() click to toggle source
# File lib/generators/leather/install/install_generator.rb, line 5
def mount
  route "mount Leather::Engine => '/'"
end