Class: NetguruBootstrapper::Generators::BootstrapGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- NetguruBootstrapper::Generators::BootstrapGenerator
- Defined in:
- lib/netguru_bootstrapper/generators/netguru_bootstrapper/bootstrap_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_directories ⇒ Object
14 15 16 17 18 19 |
# File 'lib/netguru_bootstrapper/generators/netguru_bootstrapper/bootstrap_generator.rb', line 14 def create_directories structure.directories.each do |dir| empty_directory "#{base_path}/#{dir}" create_files(dir, structure.files[dir]) end end |
#create_root_file ⇒ Object
10 11 12 |
# File 'lib/netguru_bootstrapper/generators/netguru_bootstrapper/bootstrap_generator.rb', line 10 def create_root_file template 'application.scss', "#{base_path}/application.scss" end |