Skip to content

Commit

Permalink
removing unneeded code
Browse files Browse the repository at this point in the history
  • Loading branch information
romand committed Apr 24, 2012
1 parent 017cf95 commit ff951d8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 22 deletions.
8 changes: 1 addition & 7 deletions examples/ruby/hello/hello.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
Expand Down
8 changes: 1 addition & 7 deletions examples/ruby/master_slave/master_slave.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 master code bundle
master = IronWorkerNG::Code::Ruby.new
Expand Down
9 changes: 1 addition & 8 deletions examples/ruby/simple/simple.rb
@@ -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,
Expand Down

0 comments on commit ff951d8

Please sign in to comment.