class Sumcli::Commands::Add
Public Instance Methods
endpoint(name, method = nil, route = nil)
click to toggle source
# File lib/sumcli/commands/add.rb, line 38 def endpoint(name, method = nil, route = nil) if options[:help] invoke :help, ['endpoint'] else require_relative 'add/endpoint' Sumcli::Commands::Add::Endpoint.new(name, method, route, options).execute end end
migration(name)
click to toggle source
# File lib/sumcli/commands/add.rb, line 14 def migration(name) if options[:help] invoke :help, ['migration'] else require_relative 'add/migration' Sumcli::Commands::Add::Migration.new(name, options).execute end end
service(name, version = nil)
click to toggle source
# File lib/sumcli/commands/add.rb, line 26 def service(name, version = nil) if options[:help] invoke :help, ['service'] else require_relative 'add/service' Sumcli::Commands::Add::Service.new(name, version, options).execute end end