Class: CivoCLI::Main
- Inherits:
-
Thor
- Object
- Thor
- CivoCLI::Main
- Defined in:
- lib/civo_cli.rb
Instance Method Summary collapse
Instance Method Details
#update ⇒ Object
89 90 91 92 93 94 95 96 |
# File 'lib/civo_cli.rb', line 89 def update output = `gem update civo_cli 2>&1` if output["You don't have write permissions"] puts "Updating Civo CLI with sudo permissions (unable to do it without)" `sudo gem update civo_cli 2>&1` end version end |
#version ⇒ Object
99 100 |
# File 'lib/civo_cli.rb', line 99 def version end |