Skip to content

Instantly share code, notes, and snippets.

@ivanvanderbyl
Created February 21, 2012 07:31
Show Gist options
  • Save ivanvanderbyl/1874824 to your computer and use it in GitHub Desktop.
Save ivanvanderbyl/1874824 to your computer and use it in GitHub Desktop.
require 'iron_worker'
require_relative 'worker'
IronWorker.configure do |config|
config.token = ''
config.project_id = ''
config.bundle=true
end
worker = TestPilot::Iron::Worker.new
# worker.run_local
worker.queue
require 'iron_worker'
module TestPilot
module Iron
class Worker < IronWorker::Base
def self.root
File.expand_path('../../../../', __FILE__)
end
#
# Bundler::Definition.build(root + '/Gemfile', root+'/Gemfile.lock', false).specs.each do |gem_spec|
# merge_gem gem_spec.name, gem_spec.version.to_s
# end
#
excluded_files = %w(deploy.rb)
`git ls-files`.split("\n").each do |file|
file = file.strip
if file =~ /.rb$/
merge('../../../' + file)
end
end
$: << 'lib'
require "test_pilot"
def run
puts "Starting TestPilot..."
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment