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