lib/conjur/command/host_factories.rb in conjur-cli-5.3.0 vs lib/conjur/command/host_factories.rb in conjur-cli-5.4.0

- old
+ new

@@ -21,19 +21,21 @@ class Conjur::Command::HostFactories < Conjur::Command desc "Manage host factories" command :hostfactory do |hf| - hf.desc "Create a new host factory" + hf.desc "Create a new host factory [DEPRECATED]" hf.arg_name "id" hf.command :create do |c| acting_as_option(c) c.arg_name "layer" c.desc "A space-delimited list of layers to which new hosts will belong" c.flag [:l, :layer] c.action do |global_options,options,args| + notify_deprecated + id = require_arg(args, 'hostfactory') unless options[:ownerid] exit_now! "Use --as-group or --as-role to indicate the host factory role" end