lib/conjur/base.rb in conjur-api-4.20.1 vs lib/conjur/base.rb in conjur-api-4.21.0
- old
+ new
@@ -184,9 +184,18 @@
#
# @return [String] the login of the current user.
def username
@username || @token['data']
end
+
+ # Perform all commands in Conjur::Bootstrap::Command.
+ def bootstrap listener
+ Conjur::Bootstrap::Command.constants.map{|c| Conjur::Bootstrap::Command.const_get(c)}.each do |cls|
+ next unless cls.is_a?(Class)
+ next unless cls.superclass == Conjur::Bootstrap::Command::Base
+ cls.new(self, listener).perform
+ end
+ end
# @api private
# used to delegate to host providing subclasses.
# @return [String] the host
def host