Permalink
Browse files

using examples_helper

  • Loading branch information...
1 parent 73af6ae commit b2061b88e30b3537b589e1f891a87b4aa0bec63a Andrew Kirilenko committed Feb 23, 2012
@@ -1,7 +1,7 @@
require 'iron_worker_ng'
-require 'yaml'
+require_relative '../../ruby/examples_helper'
-config = YAML.load_file('../../ruby/_config.yml')
+config = ExamplesHelper.load_config
client = IronWorkerNG::Client.new(config['iw']['project_id'], config['iw']['token'])
@@ -1,7 +1,7 @@
require 'iron_worker_ng'
-require 'yaml'
+require_relative '../../ruby/examples_helper'
-config = YAML.load_file('../../ruby/_config.yml')
+config = ExamplesHelper.load_config
client = IronWorkerNG::Client.new(config['iw']['project_id'], config['iw']['token'])
@@ -1,7 +1,7 @@
require 'iron_worker_ng'
-require 'yaml'
+require_relative '../../ruby/examples_helper'
-config = YAML.load_file('../../ruby/_config.yml')
+config = ExamplesHelper.load_config
client = IronWorkerNG::Client.new(config['iw']['project_id'], config['iw']['token'])
@@ -1,7 +1,7 @@
require 'iron_worker_ng'
-require 'yaml'
+require_relative '../../ruby/examples_helper'
-config = YAML.load_file('../../ruby/_config.yml')
+config = ExamplesHelper.load_config
client = IronWorkerNG::Client.new(config['iw']['project_id'], config['iw']['token'])
@@ -1,7 +1,7 @@
require 'iron_worker_ng'
-require 'yaml'
+require_relative '../../ruby/examples_helper'
-config = YAML.load_file('../../ruby/_config.yml')
+config = ExamplesHelper.load_config
client = IronWorkerNG::Client.new(config['iw']['project_id'], config['iw']['token'])
@@ -1,7 +1,7 @@
require 'iron_worker_ng'
-require 'yaml'
+require_relative '../../ruby/examples_helper'
-config = YAML.load_file('../../ruby/_config.yml')
+config = ExamplesHelper.load_config
client = IronWorkerNG::Client.new(config['iw']['project_id'], config['iw']['token'])

0 comments on commit b2061b8

Please sign in to comment.