use fullname for new bin, add bash cmds for old names

This commit is contained in:
Thomas Reynolds 2011-07-27 01:45:57 -07:00
parent 2634c4156f
commit fcf9764512
7 changed files with 12 additions and 7 deletions

View file

@ -2,7 +2,7 @@ require 'fileutils'
Given /^generated directory at "([^\"]*)"$/ do |dirname|
target = File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "fixtures", dirname)
init_cmd = File.expand_path(File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "bin", "mm init"))
init_cmd = File.expand_path(File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "bin", "middleman init"))
`cd #{File.dirname(target)} && #{init_cmd} #{File.basename(target)}`
end