Sha256: d0afe172293ecdd230073206f98c0808b238d63a19b6a87c974c9544a9e20ad2

Contents?: true

Size: 431 Bytes

Versions: 3

Compression:

Stored size: 431 Bytes

Contents

require 'active_support/core_ext'
require 'fileutils'

$:.unshift File.expand_path(File.join("..", "lib", "sinatra"), File.dirname(__FILE__))
require 'commands'

command = ARGV[0]

Sinatra::Command.commands.each do |klass|
  if klass.command == command
    klass.new(ARGV).call
    exit(0)
  end
end
Sinatra::Command.commands.each do |klass|
  if klass.respond_to?(:help)
    puts "sinatra #{klass.command} #{klass.help}"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sinatra-template-1.3.0 bin/sinatra
sinatra-template-1.2.0 bin/sinatra
sinatra-template-1.1.0 bin/sinatra