J
James Britt
Assume there is actual code underneath (probably involving open-uri),
and that I've got soul.rb, and I'm superbad.com
# File soul.rb lives on a remote Web server
$:.push( 'http://www.superbad.com' )
require 'soul' # Fetch from server if not found locally
Has anyone already implemented something like (I expect why_ to speak up
here)?
I should probably use hack 'require' to use open-uri, and play around,
but it's late and just wanted to toss this out.
What are the less-obvious issues with this way of fetching code? Let's
assume crypto code signing and authentication and the like.
James
--
http://www.ruby-doc.org - The Ruby Documentation Site
http://www.rubyxml.com - News, Articles, and Listings for Ruby & XML
http://www.rubystuff.com - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com - Playing with Better Toys
and that I've got soul.rb, and I'm superbad.com
# File soul.rb lives on a remote Web server
$:.push( 'http://www.superbad.com' )
require 'soul' # Fetch from server if not found locally
Has anyone already implemented something like (I expect why_ to speak up
here)?
I should probably use hack 'require' to use open-uri, and play around,
but it's late and just wanted to toss this out.
What are the less-obvious issues with this way of fetching code? Let's
assume crypto code signing and authentication and the like.
James
--
http://www.ruby-doc.org - The Ruby Documentation Site
http://www.rubyxml.com - News, Articles, and Listings for Ruby & XML
http://www.rubystuff.com - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com - Playing with Better Toys