Permalink
Browse files

Merge pull request #35 from romand-ironio/master

remove unneeded code
  • Loading branch information...
2 parents 017cf95 + ff951d8 commit b838e5820d878dee6401b064b9c177b495b4b878 romand-ironio 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 b838e58

Please sign in to comment.