features/support/env.rb in lobot-0.9.7 vs features/support/env.rb in lobot-0.10.0
- old
+ new
@@ -1,3 +1,12 @@
require "rubygems"
+require File.expand_path('../../lib/lobot', File.dirname(__FILE__))
+LOBOT_TEMP_DIRECTORY = "/tmp/lobot-test"
-require File.expand_path('../../lib/lobot', File.dirname(__FILE__))
\ No newline at end of file
+def system!(str)
+ system(str)
+ raise "Command Failed: #{str} with exit code #{$?.exitstatus}" unless $?.success?
+end
+
+After '@aws' do
+ system "cd #{LOBOT_TEMP_DIRECTORY}/testapp && rake ci:terminate" unless ENV["KEEP_INSTANCE"]
+end