Class: SolusVM::ResellerCLI

Inherits:
BaseCLI
  • Object
show all
Defined in:
lib/solusvm/cli/reseller_cli.rb

Instance Method Summary (collapse)

Methods inherited from BaseCLI

banner, default_option, namespace

Instance Method Details

- (Object) api (private)



66
67
68
# File 'lib/solusvm/cli/reseller_cli.rb', line 66

def api
  @reseller ||= SolusVM::Reseller.new(api_params)
end

- (Object) change_resources



45
46
47
# File 'lib/solusvm/cli/reseller_cli.rb', line 45

def change_resources
  output api.change_resources(options)
end

- (Object) create



26
27
28
# File 'lib/solusvm/cli/reseller_cli.rb', line 26

def create
  output api.create(options)
end

- (Object) delete(username)



55
56
57
# File 'lib/solusvm/cli/reseller_cli.rb', line 55

def delete(username)
  output api.delete(username)
end

- (Object) info(username)



50
51
52
# File 'lib/solusvm/cli/reseller_cli.rb', line 50

def info(username)
  output api.info(username)
end

- (Object) list



60
61
62
# File 'lib/solusvm/cli/reseller_cli.rb', line 60

def list
  output api.list
end