Class: Bourbon::Generator
- Inherits:
-
Thor
- Object
- Thor
- Bourbon::Generator
- Defined in:
- lib/bourbon/generator.rb
Instance Method Summary collapse
Instance Method Details
#install ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/bourbon/generator.rb', line 12 def install if bourbon_files_already_exist? && ![:force] puts "Bourbon files already installed, doing nothing." else install_files puts "Bourbon files installed to #{install_path}/" end end |
#update ⇒ Object
23 24 25 26 27 28 29 30 31 |
# File 'lib/bourbon/generator.rb', line 23 def update if bourbon_files_already_exist? remove_bourbon_directory install_files puts "Bourbon files updated." else puts "No existing bourbon installation. Doing nothing." end end |