Sha256: 06ac886ff6f946627f5de091482ac1449979cf879117e4a237b911b81781a4e3
Contents?: true
Size: 489 Bytes
Versions: 13
Compression:
Stored size: 489 Bytes
Contents
require 'ecrire/commands/base' module Ecrire module Commands class Server < Ecrire::Commands::Base def initialize(options = {}, *args) require 'ecrire' require 'rails/commands/server' shift_argv! @server = Rails::Server.new @server.options[:Port] = options[:Port] end def run! @server.tap do |server| Dir.chdir(Ecrire::Application.root) server.start end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems