class Sinspot::Commands
Constants
- ALIASES
- DEFINED_ACTIONS
Public Class Methods
call(action, opts)
click to toggle source
# File lib/sinspot/commands.rb, line 8 def self.call(action, opts) action = ALIASES[action] || action raise "\"#{action}\" not is a Sinatra Spotlight method!" unless DEFINED_ACTIONS.include?(action) new.send(action, opts) end
Public Instance Methods
new(opts)
click to toggle source
# File lib/sinspot/commands.rb, line 20 def new(opts) Sinspot::Application.new(opts).build end
version(opts)
click to toggle source
# File lib/sinspot/commands.rb, line 15 def version(opts) return puts(Sinspot::VERSION) if opts.include?('--verbose') puts "Sinatra Spotlight version #{Sinspot::VERSION}" end