lib/testbot.rb in testbot-0.4.0 vs lib/testbot.rb in testbot-0.4.1
- old
+ new
@@ -6,11 +6,15 @@
module Testbot
require 'railtie' if defined?(Rails)
# Don't forget to update readme and changelog
- VERSION = "0.4.0"
+ def self.version
+ version = "0.4.1"
+ version += ".DEV.#{Time.now.to_i}" if ENV['TESTBOT_DEV_DEPLOY']
+ version
+ end
if ENV['INTEGRATION_TEST']
SERVER_PID = "/tmp/integration_test_testbot_server.pid"
RUNNER_PID = "/tmp/integration_test_testbot_runner.pid"
else
@@ -32,11 +36,11 @@
opts = parse_args(argv)
if opts[:help]
return false
elsif opts[:version]
- puts "Testbot #{Testbot::VERSION}"
+ puts "Testbot #{Testbot.version}"
elsif [ true, 'run', 'start' ].include?(opts[:server])
start_server(opts[:server])
elsif opts[:server] == 'stop'
stop('server', Testbot::SERVER_PID)
elsif [ true, 'run', 'start' ].include?(opts[:runner])
@@ -79,9 +83,10 @@
Dir.chdir(working_dir)
runner = Runner.new(:server_host => opts[:connect],
:auto_update => opts[:auto_update], :max_instances => opts[:cpus],
:ssh_tunnel => opts[:ssh_tunnel], :server_user => opts[:user],
:max_jruby_instances => opts[:max_jruby_instances],
+ :dev_gem_root => opts[:dev_gem_root],
:jruby_opts => opts[:jruby_opts])
runner.run!
}
if opts[:runner] == 'run'