Created
February 21, 2012 07:31
-
-
Save ivanvanderbyl/1874824 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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