Commit 8c77cff3 authored by Piet Brauer's avatar Piet Brauer

Use configure instead of _CONFIGURE.rb file

parent 86dce91c
...@@ -66,7 +66,11 @@ module Pod ...@@ -66,7 +66,11 @@ module Pod
def configure_template def configure_template
UI.section("Configuring template") do UI.section("Configuring template") do
Dir.chdir(@name) do Dir.chdir(@name) do
ruby! "_CONFIGURE.rb #{@name}" if File.exists? "configure"
system "./configure #{@name}"
else
UI.warn "Template does not have a configure file."
end
end end
end end
end end
......
...@@ -27,7 +27,8 @@ module Pod ...@@ -27,7 +27,8 @@ module Pod
@sut.any_instance.stubs(:clone_template) @sut.any_instance.stubs(:clone_template)
dir = SpecHelper.temporary_directory + 'TestPod' dir = SpecHelper.temporary_directory + 'TestPod'
dir.mkpath dir.mkpath
@sut.any_instance.expects(:ruby!).with("_CONFIGURE.rb TestPod").once File.stub(:exists?).with("configure").returns(true)
@sut.any_instance.expects(:system).with("./configure TestPod").once
run_command('lib', 'create', 'TestPod') run_command('lib', 'create', 'TestPod')
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment