Module: Distributer
- Extended by:
- Distributer
- Included in:
- Distributer
- Defined in:
- lib/Distributer.rb,
lib/distributer/version.rb
Constant Summary collapse
- VERSION =
"3.0.0"
Instance Method Summary collapse
Instance Method Details
#serve(directory) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/Distributer.rb', line 8 def serve(directory) if directory.end_with?("/") $directory = directory else $directory = directory + "/" end $ip = IPSocket.getaddress(Socket.gethostname) puts "Directory \"#{directory}\" Files being served at : http://" + $ip + ":9393" require 'distributer/application/app.rb' end |