Class: Whiskey::Command::StartServer
- Inherits:
-
Object
- Object
- Whiskey::Command::StartServer
- Defined in:
- lib/whiskey/command/start_server.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(host = nil, port = nil, environment = "development") ⇒ StartServer
constructor
A new instance of StartServer.
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
#call ⇒ Object
10 11 12 |
# File 'lib/whiskey/command/start_server.rb', line 10 def call load File.join(Dir.pwd, "server.rb") end |