You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 27, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: lib/cipherstash/client.rb
+28-1Lines changed: 28 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,26 @@ def self.client_options
31
31
Profile.profile_options
32
32
end
33
33
34
+
35
+
# Log into a CipherStash workspace.
36
+
#
37
+
# If `workspace` is given, a profile will be created for that workspace.
38
+
# This is useful for logging into a workspace for the first time.
39
+
#
40
+
# If a workspace is not provided, this command will load an existing profile and then log in using that profile.
41
+
# The profile name defaults to "default", but can be overridden with the `CS_PROFILE_NAME` env var or the `defaultProfile` opt in `{cs_config_path}/config.json`.
42
+
#
43
+
# @return [TrueClass]
44
+
#
45
+
# @raise [CipherStash::Client::Error::CreateProfileFailure] if a workspace is given and a new profile could not be created.
46
+
#
47
+
# @raise [CipherStash::Client::Error::LoadProfileFailure] if a workspace is not given and an existing profile could not be loaded.
0 commit comments