diff options
author | azul <azul@riseup.net> | 2013-12-22 06:33:56 -0800 |
---|---|---|
committer | azul <azul@riseup.net> | 2013-12-22 06:33:56 -0800 |
commit | 12dbeefe693e5432416ec8019368e591c526736b (patch) | |
tree | 8b93ddc237aef26f4a68557259f5f63250b1a694 /bin/tapicero | |
parent | 41dee6ee7242a731763bb1b75e12cc97403aa4a4 (diff) | |
parent | c1e6eea1eb2a9fbdb92e806929806acef32ed8dc (diff) |
Merge pull request #6 from azul/deploy-design-docs
Deploy design docs
Diffstat (limited to 'bin/tapicero')
-rwxr-xr-x | bin/tapicero | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/tapicero b/bin/tapicero index 9a5a7ee..b8b88f1 100755 --- a/bin/tapicero +++ b/bin/tapicero @@ -1,10 +1,11 @@ #!/usr/bin/ruby +require 'pathname' # # Tapicero Daemon # -BASE_DIR = File.expand_path('../..', File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__) +BASE_DIR = Pathname.new(__FILE__).realpath + '../..' begin # @@ -17,7 +18,7 @@ rescue LoadError # require "#{BASE_DIR}/lib/tapicero/version.rb" Tapicero::REQUIRE_PATHS.each do |path| - path = File.expand_path(path, BASE_DIR) + path = BASE_DIR + path $LOAD_PATH.unshift path unless $LOAD_PATH.include?(path) end require 'rubygems' |