Sha256: 1de9771d48dc3e2097137877a52ad940e718766cd694ca9fa12d7ba2986558ce

Contents?: true

Size: 268 Bytes

Versions: 4

Compression:

Stored size: 268 Bytes

Contents

class ServerCommand
  def initialize(options)
    @options = options
  end

  def run
    ENV["RACK_ENV"] = "production"
    require "server/server_app"
    Rack::Handler::WEBrick.run(
      Sinatra::Application,
      :Port => @options[:server_port],
    )
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
carthage_remote_cache-0.0.13 lib/commands/server_command.rb
carthage_remote_cache-0.0.12 lib/commands/server_command.rb
carthage_remote_cache-0.0.11 lib/commands/server_command.rb
carthage_remote_cache-0.0.10 lib/commands/server_command.rb