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