Class: Bower::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_component_jsonObject



14
15
16
# File 'lib/generators/bower/install_generator.rb', line 14

def copy_component_json
  copy_file 'bower.json', 'bower.json'
end

#copy_configObject



18
19
20
# File 'lib/generators/bower/install_generator.rb', line 18

def copy_config
  copy_file "bowerrc", ".bowerrc"
end

#create_components_directoryObject



10
11
12
# File 'lib/generators/bower/install_generator.rb', line 10

def create_components_directory
  empty_directory 'bower_components'
end