Class: ForemanMaintain::Cli::Procedure::ByTagCommand

Inherits:
Base
  • Object
show all
Defined in:
lib/foreman_maintain/cli/advanced/procedure/by_tag_command.rb

Instance Attribute Summary

Attributes inherited from Base

#runner

Instance Method Summary collapse

Methods inherited from Base

#available_checks, #available_procedures, available_tags, #available_tags, completion_map, completion_types, dashize, #dashize, delete_duplicate_assumeyes_if_any, interactive_option, label_option, #label_string, option, #option_wrapper, parameter, #print_check_info, #reporter, #run_scenario, #run_scenarios_and_exit, service_options, subcommand, #tag_string, tags_option, #underscorize

Methods included from ForemanMaintain::Concerns::Logger

#logger

Methods included from ForemanMaintain::Concerns::Finders

#check, #detector, #feature, #find_all_scenarios, #find_checks, #find_procedures, #find_scenarios, #procedure

Instance Method Details

#executeObject



21
22
23
# File 'lib/foreman_maintain/cli/advanced/procedure/by_tag_command.rb', line 21

def execute
  puts help
end

#helpObject



25
26
27
28
29
30
# File 'lib/foreman_maintain/cli/advanced/procedure/by_tag_command.rb', line 25

def help
  if self.class.recognised_subcommands.empty?
    warn 'WARNING: There were no tags found in procedures'
  end
  super
end