Permalink
Browse files

removing unneeded code

  • Loading branch information...
1 parent 017cf95 commit ff951d8321b1c773779ae3d6041c986303d4a684 @romand romand committed Apr 24, 2012
Showing with 3 additions and 22 deletions.
  1. +1 −7 examples/ruby/hello/hello.rb
  2. +1 −7 examples/ruby/master_slave/master_slave.rb
  3. +1 −8 examples/ruby/simple/simple.rb
@@ -1,13 +1,7 @@
require 'iron_worker_ng'
-# to run examples, you must specify iron.io authentication token and project id
-token, project_id = [ ENV['IRON_IO_TOKEN'], ENV['IRON_IO_PROJECT_ID'] ]
-raise("please set $IRON_IO_TOKEN and $IRON_IO_PROJECT_ID " +
- "environment variables") unless token and project_id
-
# initializing api object with them
-client = IronWorkerNG::Client.new(:token => token,
- :project_id => project_id)
+client = IronWorkerNG::Client.new
# create ruby code bundle
code = IronWorkerNG::Code::Ruby.new
@@ -1,13 +1,7 @@
require 'iron_worker_ng'
-# to run examples, you must specify iron.io authentication token and project id
-token, project_id = [ ENV['IRON_IO_TOKEN'], ENV['IRON_IO_PROJECT_ID'] ]
-raise("please set $IRON_IO_TOKEN and $IRON_IO_PROJECT_ID " +
- "environment variables") unless token and project_id
-
# initializing api object with them
-client = IronWorkerNG::Client.new(:token => token,
- :project_id => project_id)
+client = IronWorkerNG::Client.new
# create master code bundle
master = IronWorkerNG::Code::Ruby.new
@@ -1,16 +1,9 @@
require 'iron_worker_ng'
-# to run examples, you must specify iron.io authentication token and project id
-token, project_id = [ ENV['IRON_IO_TOKEN'], ENV['IRON_IO_PROJECT_ID'] ]
-raise("please set $IRON_IO_TOKEN and $IRON_IO_PROJECT_ID " +
- "environment variables") unless token and project_id
-
IronWorkerNG::Logger.logger.level = ::Logger::DEBUG
# initializing api object with them
-client = IronWorkerNG::Client.new(:token => token,
- :project_id => project_id,
- # rest are optinal
+client = IronWorkerNG::Client.new(# optinal
:scheme => 'https',
:port => 443,
:api_version => 2,

0 comments on commit ff951d8

Please sign in to comment.