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

Version Path
ecrire-0.26.3 lib/ecrire/commands/server.rb
ecrire-0.26.2 lib/ecrire/commands/server.rb
ecrire-0.26.1 lib/ecrire/commands/server.rb
ecrire-0.26.0 lib/ecrire/commands/server.rb
ecrire-0.25.2 lib/ecrire/commands/server.rb
ecrire-0.25.1 lib/ecrire/commands/server.rb
ecrire-0.25.0 lib/ecrire/commands/server.rb
ecrire-0.24.1 lib/ecrire/commands/server.rb
ecrire-0.24.0 lib/ecrire/commands/server.rb
ecrire-0.23.0 lib/ecrire/commands/server.rb
ecrire-0.22.1 lib/ecrire/commands/server.rb
ecrire-0.21.0 lib/ecrire/commands/server.rb
ecrire-0.20.0 lib/ecrire/commands/server.rb