Class: CubeCli::CLI
- Inherits:
-
Thor
- Object
- Thor
- CubeCli::CLI
- Defined in:
- lib/cube_cli/cli.rb
Instance Method Summary collapse
Instance Method Details
#get ⇒ Object
24 25 26 27 28 |
# File 'lib/cube_cli/cli.rb', line 24 def get cube_id = [:cube_id] region = [:region] || 'cn-bj2' puts CubeCli.get(region, cube_id) end |
#update ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/cube_cli/cli.rb', line 12 def update image = [:image] cube_id = [:cube_id] region = [:region] || 'cn-bj2' pod_name = [:pod_name] puts CubeCli.update(region, cube_id, image, pod_name) end |