Class: CubeCli::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/cube_cli/cli.rb

Instance Method Summary collapse

Instance Method Details

#getObject



24
25
26
27
28
# File 'lib/cube_cli/cli.rb', line 24

def get
  cube_id = options[:cube_id]
  region = options[:region] || 'cn-bj2'
  puts CubeCli.get(region, cube_id)
end

#updateObject



12
13
14
15
16
17
18
# File 'lib/cube_cli/cli.rb', line 12

def update
  image = options[:image]
  cube_id = options[:cube_id]
  region = options[:region] || 'cn-bj2'
  pod_name = options[:pod_name]
  puts CubeCli.update(region, cube_id, image, pod_name)
end