Skip to content

Instantly share code, notes, and snippets.

@nathanborgo
Created September 11, 2012 19:28
Show Gist options
  • Save nathanborgo/3701361 to your computer and use it in GitHub Desktop.
Save nathanborgo/3701361 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
# resolve bin path, ignoring symlinks
require "pathname"
bin_file = Pathname.new(__FILE__).realpath
# add self to libpath
path = File.expand_path("../../lib", bin_file)
$LOAD_PATH.unshift path
require 'heploy/cli'
Heploy::CLI.start
puts $LOAD_PATH
$LOAD_PATH.delete path
puts $LOAD_PATH
sh: /Users/nathan/code/gems/heploy: not found
!
! Invalid RUBY_VERSION specified: The-path-`/Users/nathan/code/gems/heploy`-does-not-exist.
! Valid versions: ruby-1.9.3-p0, ruby-1.9.3-p125, rbx-1.2.4, rbx-2.0.0dev-20120115-1.9, rbx-2.0.0dev-20120115-1.8, rbx-2.0.0dev-20120123-1.9, rbx-2.0.0dev-20120123-1.8, ruby-1.9.2-p290, jruby-1.6.5.1, jruby-1.6.7, ruby-1.9.3, ruby-1.9.2, ruby-1.8.7, ruby-1.9.3-jruby-1.7.0.preview1, ruby-1.8.7-jruby-1.7.0.preview1, ruby-1.9.3-rbx-2.0.0dev, ruby-1.8.7-rbx-2.0.0dev
!
sh: /Users/nathan/code/gems/heploy: not found
! Heroku push rejected, failed to compile Ruby/rails app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment