Sha256: 08917d5c6cfc18df76ec6d371400c720939af1028f4a7b8b4c18c2f0ec82e294

Contents?: true

Size: 303 Bytes

Versions: 2

Compression:

Stored size: 303 Bytes

Contents

module Sinatra
  class ConsoleCommand < Sinatra::EnvCommand

    def self.command
      "console"
    end

    def self.help
      "[environment]\t\t# default: development"
    end

    def call
      path = File.expand_path(File.join(@app_dir, "setup.rb"))
      cmd "pry -r #{path}"
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sinatra-template-1.2.0 lib/sinatra/commands/console_command.rb
sinatra-template-1.1.0 lib/sinatra/commands/console_command.rb