Merge branch '8784-dir-listings'
[arvados.git] / services / api / script / create_superuser_token.rb
1 #!/usr/bin/env ruby
2 # Copyright (C) The Arvados Authors. All rights reserved.
3 #
4 # SPDX-License-Identifier: AGPL-3.0
5
6 # Install the supplied string (or a randomly generated token, if none
7 # is given) as an API token that authenticates to the system user
8 # account.
9 #
10 # Print the token on stdout.
11
12 require './lib/create_superuser_token'
13 include CreateSuperUserToken
14
15 supplied_token = ARGV[0]
16
17 token = CreateSuperUserToken.create_superuser_token supplied_token
18 puts token