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