Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
Put buildpacks in source directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Jennifer Hickey and Maria Shaldibina committed Mar 1, 2013
1 parent ea3518d commit 1e6f2b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/vcap/staging/plugin/buildpack/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def stage_application
end

def clone_buildpack(buildpack_url)
buildpack_path = "#{app_dir}/.buildpacks/#{File.basename(buildpack_url)}"
buildpack_path = "#{source_directory}/.buildpacks/#{File.basename(buildpack_url)}"
ok = system("git clone #{buildpack_url} #{buildpack_path}")
raise "Failed to git clone buildpack" unless ok
BuildpackInstaller.new(Pathname.new(buildpack_path), app_dir)
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/buildpack_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@

it "clones the buildpack URL" do
mock(plugin).system(anything) do |cmd|
expect(cmd).to match /git clone #{buildpack_url} #{plugin.app_dir}\/.buildpacks/
expect(cmd).to match /git clone #{buildpack_url} #{plugin.source_directory}\/.buildpacks/
true
end

Expand Down

0 comments on commit 1e6f2b1

Please sign in to comment.