Skip to content

Commit

Permalink
Skip detect...
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Shadel <tim.shadel@familysearch.org>
  • Loading branch information
Tim Shadel committed Apr 13, 2012
1 parent cc0893f commit ad56018
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 18 deletions.
5 changes: 4 additions & 1 deletion bin/compile
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
#!/usr/local/bin/ruby

require 'tmpdir'
require 'fileutils'
Expand Down Expand Up @@ -31,6 +31,9 @@ Dir.mktmpdir "env_ssh" do |dir|
indent `ssh-add #{dir}/env_ssh_key 2>&1`.strip.gsub(/#{dir}/, '[tmpdir]')
ENV.delete('SSH_KEY')

arrow "Checking GitHub identity"
indent `ssh -T git@github.com`

# Execute the real buildpack
Dir.mktmpdir "proxy_pack" do |pack_dir|

Expand Down
34 changes: 17 additions & 17 deletions bin/detect
@@ -1,21 +1,21 @@
#!/usr/bin/env ruby
#!/usr/local/bin/ruby

def indent(str)
puts " #{str}"
end
# def indent(str)
# puts " #{str}"
# $stdout.flush
# end

def arrow(str)
puts "-----> #{str}"
end
# def arrow(str)
# puts "-----> #{str}"
# $stdout.flush
# end

arrow "Checking for private SSH keys in `SSH_KEY`"
# arrow "Checking for private SSH keys in `SSH_KEY`"

if ENV.include? 'SSH_KEY'
puts "Private SSH Keys"
exit 0
else
puts "No SSH_KEY found in"
require 'pp'
pp ENV
exit 1
end
# if ENV.include? 'SSH_KEY'
puts "Private SSH Keys"
exit 0
# else
# indent "No SSH_KEY found in app config. Did you set `user_env_compile` on your app with the heroku labs tool?"
# exit 1
# end

0 comments on commit ad56018

Please sign in to comment.