2012-02-01 15:06:30 +00:00
|
|
|
require "vegetable_glue/version"
|
|
|
|
require 'net/http'
|
|
|
|
require 'fileutils'
|
|
|
|
|
|
|
|
module VegetableGlue
|
|
|
|
autoload :Runner, 'vegetable_glue/runner'
|
|
|
|
|
|
|
|
ACCEPTANCE = '__acceptance__'
|
|
|
|
CLEAN = '__clean__'
|
|
|
|
|
|
|
|
class << self
|
|
|
|
attr_accessor :url, :path, :env
|
|
|
|
|
|
|
|
def shutdown
|
|
|
|
Runner.new(options).shutdown
|
|
|
|
end
|
|
|
|
|
2012-02-06 14:43:54 +00:00
|
|
|
def clean(name = nil)
|
|
|
|
Runner.new(options).clean(name)
|
2012-02-01 15:06:30 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def env
|
|
|
|
@env ||= :cucumber
|
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
def options
|
|
|
|
{ :url => url, :path => path, :env => env }
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|