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