Class: Sumcli::Commands::Add
- Inherits:
-
Thor
- Object
- Thor
- Sumcli::Commands::Add
- Defined in:
- lib/sumcli/commands/add.rb,
lib/sumcli/commands/add/service.rb,
lib/sumcli/commands/add/endpoint.rb,
lib/sumcli/commands/add/migration.rb
Defined Under Namespace
Classes: Endpoint, Migration, Service
Instance Method Summary collapse
- #endpoint(name, method = nil, route = nil) ⇒ Object
- #migration(name) ⇒ Object
- #service(name, version = nil) ⇒ Object
Instance Method Details
#endpoint(name, method = nil, route = nil) ⇒ Object
38 39 40 41 42 43 44 45 |
# File 'lib/sumcli/commands/add.rb', line 38 def endpoint(name, method = nil, route = nil) if [:help] invoke :help, ['endpoint'] else require_relative 'add/endpoint' Sumcli::Commands::Add::Endpoint.new(name, method, route, ).execute end end |