Class: Internode::CLI
- Inherits:
-
Thor
- Object
- Thor
- Internode::CLI
- Defined in:
- lib/internode/cli.rb
Instance Method Summary collapse
Instance Method Details
#list ⇒ Object
14 15 16 17 18 |
# File 'lib/internode/cli.rb', line 14 def list tp account.details, :id, :type, :plan, format(:quota), :speed rescue Client::ServerError => err print_error(err) end |
#print_version ⇒ Object
28 29 30 |
# File 'lib/internode/cli.rb', line 28 def print_version puts Internode::VERSION end |
#usage ⇒ Object
21 22 23 24 25 |
# File 'lib/internode/cli.rb', line 21 def usage tp account.usage, :id, :type, format(:total), format(:quota), :percentage, :plan_interval, :rollover rescue Client::ServerError => err print_error(err) end |