Class: Railsview::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#create_foldersObject



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/generators/railsview/install/install_generator.rb', line 6

def create_folders
	empty_directory "#{Rails.root}/lib/railsview/themes"
	puts "Railsview was succesfully installed."
	puts "You can now add all your themes in the 'lib/railsview/themes' directory"
   puts "Be aware that installing a railsview theme will overwrite your app."
   puts "============================================================================="
	puts "Run 'rails generate railsview:import Theme_Name' to import and install theme."
   puts "============================================================================="
	puts "If you don't have a theme yet..."
	puts "You can get themes at http://www.railsview.com"
end