Class: Hole::Run::Server

Inherits:
Base
  • Object
show all
Defined in:
lib/system/run/commands/server.rb

Instance Attribute Summary

Attributes inherited from Base

#config, #options

Instance Method Summary collapse

Methods inherited from Base

description, example, get_object_name, meta, method_added, option, options, summary, syntax

Instance Method Details

#run(*args) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/system/run/commands/server.rb', line 7

def run(*args)
  ip = args[0]
  port = args[1]

  puts "Hole server is started !"
  Hole::Server.new(ip ? ip : 'localhost', port ? port : 3000)

end