class Solusvm::ClientCli
Public Instance Methods
authenticate(username, password)
click to toggle source
# File lib/solusvm/cli/client_cli.rb, line 21 def authenticate(username, password) output api.authenticate(username, password) end
change_password(username, password)
click to toggle source
# File lib/solusvm/cli/client_cli.rb, line 16 def change_password(username, password) output api.change_password(username, password) end
check_exists(username)
click to toggle source
# File lib/solusvm/cli/client_cli.rb, line 26 def check_exists(username) output api.exists?(username) end
create()
click to toggle source
# File lib/solusvm/cli/client_cli.rb, line 11 def create output api.create(options) end
delete(username)
click to toggle source
# File lib/solusvm/cli/client_cli.rb, line 31 def delete(username) output api.delete(username) end
list()
click to toggle source
# File lib/solusvm/cli/client_cli.rb, line 36 def list output api.list end
Private Instance Methods
api()
click to toggle source
# File lib/solusvm/cli/client_cli.rb, line 42 def api @client ||= begin Solusvm::Client.new(api_params()) end end