Class: Whiskey::Command::StartServer

Inherits:
Object
  • Object
show all
Defined in:
lib/whiskey/command/start_server.rb

Instance Method Summary collapse

Constructor Details

#initialize(host = nil, port = nil, environment = "development") ⇒ StartServer

Returns a new instance of StartServer.



4
5
6
7
8
# File 'lib/whiskey/command/start_server.rb', line 4

def initialize(host = nil, port = nil, environment = "development")
  ENV["WHISKEY_HOST"] = host
  ENV["WHISKEY_PORT"] = port
  ENV["WHISKEY_ENVIRONMENT"] = environment
end

Instance Method Details

#callObject



10
11
12
# File 'lib/whiskey/command/start_server.rb', line 10

def call
  load File.join(Dir.pwd, "server.rb")
end