Sha256: 2041d90402c75b27ddcd7b5e23505448d5dd5cacbe9d2cd63f7dfdefa1fac0a7
Contents?: true
Size: 500 Bytes
Versions: 2
Compression:
Stored size: 500 Bytes
Contents
module Sinatra class StartCommand < Sinatra::EnvCommand def self.command "start" end def self.help "[environment]\t\t# default: development" end def call path = File.expand_path(File.join(@app_dir, "Procfile.#{self.env}")) if File.exists?(path) cmd "bundle exec foreman start -f #{path}" else path = File.expand_path(File.join(@app_dir, "Procfile")) cmd "bundle exec foreman start -f #{path}" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sinatra-template-1.2.0 | lib/sinatra/commands/start_command.rb |
sinatra-template-1.1.0 | lib/sinatra/commands/start_command.rb |