lib/solusvm/cli/client_cli.rb in solusvm-1.2.1 vs lib/solusvm/cli/client_cli.rb in solusvm-1.3.0

- old
+ new

@@ -1,15 +1,15 @@ module Solusvm class ClientCli < BaseCli desc "create", "Creates a new h" - method_option :username, :type => :string, :desc => "Username", :aliases => ["-u", "--username"] - method_option :password, :type => :string, :desc => "Password", :aliases => ["-p", "--password"] - method_option :email, :type => :string, :desc => "Email", :aliases => ["-e", "--email"] - method_option :firstname, :type => :string, :desc => "Firstname", :aliases => ["-f", "--firstname"] - method_option :lastname, :type => :string, :desc => "Lastname", :aliases => ["-l", "--lastname"] - method_option :company, :type => :string, :desc => "Company", :aliases => ["-c", "--company"] + method_option :username, type: :string, desc: "Username", aliases: ["-u", "--username"] + method_option :password, type: :string, desc: "Password", aliases: ["-p", "--password"] + method_option :email, type: :string, desc: "Email", aliases: ["-e", "--email"] + method_option :firstname, type: :string, desc: "Firstname", aliases: ["-f", "--firstname"] + method_option :lastname, type: :string, desc: "Lastname", aliases: ["-l", "--lastname"] + method_option :company, type: :string, desc: "Company", aliases: ["-c", "--company"] def create output api.create(options) end desc "change-password USERNAME NEWPASSWORD", "Changes the password of an existing client" @@ -39,11 +39,10 @@ private def api @client ||= begin - configure - Solusvm::Client.new + Solusvm::Client.new(api_params()) end end end -end \ No newline at end of file +end