Sha256: aff4fc1cc917c88faf9a9c940027cf7dd707f792278d672be038f46a02bb153a
Contents?: true
Size: 1.83 KB
Versions: 6
Compression:
Stored size: 1.83 KB
Contents
=begin Prepares the vj-core development environment. Runs automatically before spec. =end require 'net/http' require File.join(File.dirname(__FILE__), "..", "lib", "sdk_connection_harness") namespace :videojuicer do namespace :core do task :setup do Rake::Task['videojuicer:core:stop'].invoke Rake::Task['videojuicer:core:load_fixtures'].invoke Rake::Task['videojuicer:core:start'].invoke end task :cleanup do Rake::Task['videojuicer:core:stop'].invoke end task :load_fixtures do puts "Loading fixtures from vj-core..." SDKConnectionHarness.load_fixtures puts "Writing to tempfile..." SDKConnectionHarness.write_fixtures end task :start do if SDKConnectionHarness.running? puts "The SDK Test harness is already running on port #{SDKConnectionHarness.port}. Attempting to stop." SDKConnectionHarness.stop! until !SDKConnectionHarness.running? do print "+" sleep 1 end else SDKConnectionHarness.start! puts "Waiting for test harness to launch and open the port." until SDKConnectionHarness.running? do print "+" sleep 1 end end end task :status do puts( if SDKConnectionHarness.running? "The test harness is RUNNING on port #{SDKConnectionHarness.port}" else "The test harness is NOT running on port #{SDKConnectionHarness.port}" end ) end task :stop do if SDKConnectionHarness.running? SDKConnectionHarness.stop! puts "Waiting for exit" while SDKConnectionHarness.running? do print "." sleep 1 end else puts "The test harness is not running." end end end end
Version data entries
6 entries across 6 versions & 2 rubygems