rakefile in mirage-1.1.0 vs rakefile in mirage-1.2.0
- old
+ new
@@ -1,18 +1,13 @@
$LOAD_PATH.unshift('lib')
require 'rubygems'
-require 'bundler/setup'
-
-require 'mirage/client'
require 'rake'
-require 'open-uri'
require 'cucumber'
require 'cucumber/rake/task'
-require 'mechanize'
def run_command command
- system "export RUBYOPT='' && #{command}"
+ system "#{command}"
end
task :gem => :clean do
run_command 'gem build mirage.gemspec'
end
@@ -23,28 +18,16 @@
Cucumber::Rake::Task.new(:features) do |t|
t.cucumber_opts = "mode=regression features --format pretty"
end
-task :start_mirage => :stop_mirage do
- run_command "mirage start"
- task.reenable
-end
-
-task :stop_mirage do |task|
- run_command "mirage stop"
- task.reenable
-end
-
-
task :clean do |task|
-
if run_command "gem list -i mirage"
puts "cleaning"
run_command "gem uninstall -x mirage"
end
Dir['*.gem'].each{|gem| FileUtils.rm_f(gem)}
task.reenable
end
-task :default => [:install, :start_mirage, :features, :stop_mirage, :clean]
+task :default => [:install,:features,:clean]
\ No newline at end of file