Class: UsePacks::Private::InteractiveCli::UseCases::MakePublic

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

Instance Method Summary collapse

Methods included from Interface

all, included

Instance Method Details

#perform!(prompt) ⇒ Object



18
19
20
21
22
23
24
25
# File 'lib/use_packs/private/interactive_cli/use_cases/make_public.rb', line 18

def perform!(prompt)
  paths_relative_to_root = FileSelector.select(prompt)

  UsePacks.make_public!(
    paths_relative_to_root: paths_relative_to_root,
    per_file_processors: [UsePacks::RubocopPostProcessor.new, UsePacks::CodeOwnershipPostProcessor.new]
  )
end

#user_facing_nameObject



13
14
15
# File 'lib/use_packs/private/interactive_cli/use_cases/make_public.rb', line 13

def user_facing_name
  'Make files or directories public'
end