Permalink
Browse files

modified: now TARGET_DIR is defined by Ruby's install dir.

  • Loading branch information...
1 parent 93eb70e commit 651136d20e9925d9a86d224272acae13dad84c31 @wtnabe committed Jan 12, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/xig_installer.rb
@@ -1,12 +1,14 @@
# -*- coding: utf-8 -*-
+require 'rbconfig'
require 'pathname'
require 'optparse'
require 'erb'
include FileUtils::Verbose
+RbConfig = Config unless defined? RbConfig
class XigInstaller
VERSION = '0.0.1'
- TARGET_DIR = '/usr/local/bin'
+ TARGET_DIR = RbConfig::CONFIG['bindir']
XIG_GLOB = '*ig.rb'
class CommandNotExist < StandardError ; end

0 comments on commit 651136d

Please sign in to comment.