lib/hexlet/base_cli.rb in hexlet-0.3.2 vs lib/hexlet/base_cli.rb in hexlet-0.3.3
- old
+ new
@@ -9,10 +9,10 @@
class_option :verbose, type: :boolean
class_option :host, type: :string, default: "http://hexlet.io"
desc "login HEXLET_API_KEY", "login on hexlet.io"
def login(key)
- client = BaseClient.new key, logger: logger
+ client = build_client(key)
if client.login
puts (t :ok)
write_config("hexlet_api_key" => key)
else
puts (t :not_found)