Class: Lotus::CliSubCommands::Destroy
- Inherits:
-
Thor
- Object
- Thor
- Lotus::CliSubCommands::Destroy
- Includes:
- Thor::Actions
- Defined in:
- lib/lotus/cli_sub_commands/destroy.rb
Overview
Instance Method Summary collapse
- #actions(application_name, controller_and_action_name) ⇒ Object
- #application(name) ⇒ Object
- #mailer(name) ⇒ Object
- #migration(name) ⇒ Object
- #model(name) ⇒ Object
Instance Method Details
#actions(application_name, controller_and_action_name) ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/lotus/cli_sub_commands/destroy.rb', line 27 def actions(application_name, controller_and_action_name) if [:help] invoke :help, ['action'] else Lotus::Commands::Generate::Action.new(, application_name, controller_and_action_name).destroy.start end end |
#application(name) ⇒ Object
74 75 76 77 78 79 80 81 |
# File 'lib/lotus/cli_sub_commands/destroy.rb', line 74 def application(name) if [:help] invoke :help, ['app'] else require 'lotus/commands/generate/app' Lotus::Commands::Generate::App.new(, name).destroy.start end end |
#mailer(name) ⇒ Object
90 91 92 93 94 95 96 97 98 99 |
# File 'lib/lotus/cli_sub_commands/destroy.rb', line 90 def mailer(name) if [:help] invoke :help, ['mailer'] else require 'lotus/commands/generate/mailer' [:behavior] = :revoke Lotus::Commands::Generate::Mailer.new(, name).destroy.start end end |