Class: NetguruBootstrapper::Generators::BootstrapGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/netguru_bootstrapper/generators/netguru_bootstrapper/bootstrap_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_directoriesObject



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_fileObject



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