Class: Charyf::Command::DestroyCommand

Inherits:
Base
  • Object
show all
Defined in:
lib/charyf/utils/commands/destroy/destroy_command.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods inherited from Base

banner, base_name, command_name, desc, desc_file, executable, #help, hide_command!, inherited, namespace, perform, printing_commands

Methods included from Actions

#load_generators, #require_application_and_environment!, #start_interfaces!, #start_pipeline!

Instance Method Details

#performObject



15
16
17
18
19
20
21
22
23
# File 'lib/charyf/utils/commands/destroy/destroy_command.rb', line 15

def perform(*)
  generator = args.shift
  return help unless generator

  require_application_and_environment!
  load_generators

  Charyf::Generators.invoke generator, args, behavior: :revoke, destination_root: Charyf::Command.root
end