Sha256: 3af7e0fa707672992d72c1b902e01105abcfda1851ad3b0e25f029a3e45044b7
Contents?: true
Size: 395 Bytes
Versions: 2
Compression:
Stored size: 395 Bytes
Contents
module Sinatra def self.template_dir File.expand_path(File.join("..", "..", "..", "template_app"), File.dirname(__FILE__)) end class Command def self.command nil end def self.commands @commands ||= [] end def self.inherited(klass) self.commands << klass end def cmd(command) puts command system command end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sinatra-template-1.2.0 | lib/sinatra/commands/command.rb |
sinatra-template-1.1.0 | lib/sinatra/commands/command.rb |