conjur-cli 2.1.7 → 2.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +1 -1
- data/Rakefile +2 -0
- data/lib/conjur/command/authn.rb +3 -6
- data/lib/conjur/version.rb +1 -1
- metadata +2 -2
data/Gemfile
CHANGED
|
@@ -4,7 +4,7 @@ source 'https://rubygems.org'
|
|
|
4
4
|
gemspec
|
|
5
5
|
|
|
6
6
|
gem 'slosilo', git: 'https://github.com/inscitiv/slosilo.git', branch: 'master'
|
|
7
|
-
gem 'conjur-api', git: 'https://github.com/inscitiv/api-ruby.git', branch: 'master'
|
|
7
|
+
gem 'conjur-api', '~> 2.2.2', git: 'https://github.com/inscitiv/api-ruby.git', branch: 'master'
|
|
8
8
|
gem 'conjur-asset-cmi-study', git: 'https://inscitiv-ops-dev:Me5aswes@github.com/inscitiv/conjur-asset-cmi-study', branch: 'master'
|
|
9
9
|
gem 'conjur-asset-environment', git: 'https://inscitiv-ops-dev:Me5aswes@github.com/inscitiv/conjur-asset-environment', branch: 'master'
|
|
10
10
|
gem 'conjur-asset-deployment', git: 'https://inscitiv-ops-dev:Me5aswes@github.com/inscitiv/conjur-asset-deployment', branch: 'master'
|
data/Rakefile
CHANGED
data/lib/conjur/command/authn.rb
CHANGED
|
@@ -54,12 +54,9 @@ DESC
|
|
|
54
54
|
|
|
55
55
|
desc "Prints out the current logged in username"
|
|
56
56
|
command :whoami do |c|
|
|
57
|
-
c.action do
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
else
|
|
61
|
-
exit_now! 'Not logged in.', -1
|
|
62
|
-
end
|
|
57
|
+
c.action do |global_options,options,args|
|
|
58
|
+
token = Conjur::Authn.authenticate(options)
|
|
59
|
+
puts({ account: Conjur::Core::API.conjur_account, username: token['data'] }.to_json)
|
|
63
60
|
end
|
|
64
61
|
end
|
|
65
62
|
end
|
data/lib/conjur/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: conjur-cli
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.8
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2013-05-
|
|
13
|
+
date: 2013-05-30 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: conjur-api
|