class Themes::NewGenerator

Public Instance Methods

create_assets_files() click to toggle source
# File lib/generators/themes/new_generator.rb, line 24
def create_assets_files
  empty_directory "app/assets/stylesheets/#{theme_name}"
  empty_directory "app/assets/javascripts/#{theme_name}"
end
create_theme_configuration_file() click to toggle source
# File lib/generators/themes/new_generator.rb, line 15
def create_theme_configuration_file
  template 'theme_loader.rb.erb', "config/themes/#{theme_name}.rb"
end
create_views_initial_files() click to toggle source
# File lib/generators/themes/new_generator.rb, line 19
def create_views_initial_files
  empty_directory "app/views/themes/#{theme_name}"
  empty_directory "app/views/themes/#{theme_name}/layouts"
end
theme_email() click to toggle source
# File lib/generators/themes/new_generator.rb, line 33
def theme_email
  email
end
theme_name() click to toggle source
# File lib/generators/themes/new_generator.rb, line 29
def theme_name
  name
end