Skip to content
This repository was archived by the owner on Jan 27, 2023. It is now read-only.

Commit 9b288eb

Browse files
committed
Rename log_in methods to login
This is consistent with the name of the Rake task in ActiveStash.
1 parent 2642c50 commit 9b288eb

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

lib/cipherstash/client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ def self.client_options
4646
#
4747
# @raise [CipherStash::Client::Error::LoadProfileFailure] if a workspace is not given and an existing profile could not be loaded.
4848
#
49-
def self.log_in(workspace: nil, profile_name: nil, logger: default_logger)
50-
Profile.log_in(workspace: workspace, profile_name: profile_name, logger: logger)
49+
def self.login(workspace: nil, profile_name: nil, logger: default_logger)
50+
Profile.login(workspace: workspace, profile_name: profile_name, logger: logger)
5151
true
5252
end
5353

lib/cipherstash/client/profile.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,14 @@ def self.create(name, logger, **opts)
126126
profile.save
127127
end
128128

129-
def self.log_in(workspace:, profile_name:, logger:)
130-
is_initial_log_in = !workspace.nil?
129+
def self.login(workspace:, profile_name:, logger:)
130+
is_initial_login = !workspace.nil?
131131
profile_name = resolve_profile_name(profile_name)
132132

133-
if is_initial_log_in
133+
if is_initial_login
134134
create(profile_name, logger, workspace: workspace)
135135
else
136-
load(profile_name, logger).log_in
136+
load(profile_name, logger).login
137137
end
138138
end
139139

@@ -540,7 +540,7 @@ def generate_naming_key
540540
end
541541
end
542542

543-
def log_in
543+
def login
544544
access_token_creds_provider = access_token_provider(**symbolize_keys(identity_provider_config))
545545
access_token_creds_provider.fresh_credentials
546546

0 commit comments

Comments
 (0)