Class: Packs::Private::InteractiveCli::UseCases::LintPackageYmlFiles

Inherits:
Object
  • Object
show all
Extended by:
T::Helpers, T::Sig
Includes:
Interface
Defined in:
lib/packs/private/interactive_cli/use_cases/lint_package_yml_files.rb

Instance Method Summary collapse

Methods included from Interface

all, included

Instance Method Details

#perform!(prompt) ⇒ Object



13
14
15
16
# File 'lib/packs/private/interactive_cli/use_cases/lint_package_yml_files.rb', line 13

def perform!(prompt)
  packs = PackSelector.single_or_all_pack_multi_select(prompt, question_text: 'Please select the packs you want to lint package.yml files for')
  Packs.lint_package_yml_files!(packs)
end

#user_facing_nameObject



19
20
21
# File 'lib/packs/private/interactive_cli/use_cases/lint_package_yml_files.rb', line 19

def user_facing_name
  'Lint packs/*/package.yml for one or more packs'
end