class Sinatra::StartCommand
Public Class Methods
command()
click to toggle source
# File lib/sinatra/commands/start_command.rb, line 4 def self.command "start" end
help()
click to toggle source
# File lib/sinatra/commands/start_command.rb, line 8 def self.help "[environment]\t\t# default: development" end
Public Instance Methods
call()
click to toggle source
# File lib/sinatra/commands/start_command.rb, line 12 def call path = app_path("Procfile.#{self.env}") if File.exists?(path) cmd "bundle exec foreman start -f #{path}" else path = app_path("Procfile") cmd "bundle exec foreman start -f #{path}" end end