Permalink
Browse files

add vagrant

  • Loading branch information...
1 parent 58f8ff9 commit 21d499f2060d3d9f028daf1c2c73337ab43117ce @simpsonjulian simpsonjulian committed Dec 6, 2011
Showing with 31 additions and 1 deletion.
  1. +28 −1 Rakefile
  2. +3 −0 Vagrantfile
View
@@ -1,3 +1,5 @@
+require 'rubygems'
+
require 'rake'
require 'rspec/core/rake_task'
require 'rake/clean'
@@ -12,4 +14,29 @@ RSpec::Core::RakeTask.new do |t|
end
-task :default => :spec
+require 'vagrant'
+
+desc "fire up vagrant so we can test the plain ssh update script"
+task :bumsrush do
+ env = Vagrant::Environment.new
+ env.cli("destroy")
+end
+
+task :vagrant do
+ env = Vagrant::Environment.new
+ env.cli("up")
+end
+
+require 'cucumber'
+require 'cucumber/rake/task'
+
+Cucumber::Rake::Task.new(:features) do |t|
+ t.cucumber_opts = "features --format pretty"
+end
+
+
+
+
+task :default => [:spec, :features]
+task :features => :vagrant
+task :clean => :bumsrush
View
@@ -0,0 +1,3 @@
+Vagrant::Config.run do |config|
+ config.vm.box = "lucid32"
+end

0 comments on commit 21d499f

Please sign in to comment.