Class: Gempilot::CLI::Commands::Destroy
- Inherits:
-
Gempilot::CLI::Command
- Object
- CommandKit::Command
- Gempilot::CLI::Command
- Gempilot::CLI::Commands::Destroy
- Includes:
- GemContext
- Defined in:
- lib/gempilot/cli/commands/destroy.rb
Overview
Removes a class, module, or command from an existing gem.
Instance Method Summary collapse
Instance Method Details
#run(type = nil, path = nil) ⇒ Object
27 28 29 30 31 32 |
# File 'lib/gempilot/cli/commands/destroy.rb', line 27 def run(type = nil, path = nil) type ||= prompt_for_type detect_gem_context path ||= prompt_for_path dispatch_destroy(type, path) end |