Class: Explorer::CLI::Setup
- Inherits:
-
Thor
- Object
- Thor
- Explorer::CLI::Setup
- Defined in:
- lib/explorer/cli/setup.rb
Instance Method Summary collapse
Instance Method Details
#install ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/explorer/cli/setup.rb', line 8 def install setup = Explorer::Setup.new return puts Rainbow('Explorer is already installed').color(:red) if setup.installed? return puts Rainbow('Cannot install, not suitable').color(:red) unless setup.suitable? setup.install puts Rainbow('Done installing `.dev` support').color(:green).bright end |
#uninstall ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/explorer/cli/setup.rb', line 17 def uninstall setup = Explorer::Setup.new return puts Rainbow('Explorer is not installed').color(:red) unless setup.installed? return puts Rainbow('Cannot uninstall, not suitable').color(:red) unless setup.suitable? setup.uninstall puts Rainbow('Done uninstalling `.dev` support').color(:green).bright end |