Sha256: 3a91a7ff83c35ce65928ca4c8dcabf3359a9567d6c60e6f47d8fe997d5f00f95
Contents?: true
Size: 691 Bytes
Versions: 1
Compression:
Stored size: 691 Bytes
Contents
require "bundler/gem_tasks" module Bundler class GemHelper def install_gem(built_gem_path = nil, local = false) path = File.expand_path(File.dirname(__FILE__)) path = path.gsub('/', '\/').strip `sed -i -e "s/__RB2EXE_GEM_PATH__/#{path}/g" #{Dir.pwd}/bin/rb2exe` sh_with_code("sudo ln -sf #{Dir.pwd}/bin/rb2exe /usr/local/bin/") built_gem_path ||= build_gem out, _ = sh_with_code("gem install '#{built_gem_path}'#{" --local" if local}") raise "Couldn't install gem, run `gem install #{built_gem_path}' for more detailed output" unless out[/Successfully installed/] Bundler.ui.confirm "#{name} (#{version}) installed." end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rb2exe-0.1.14 | Rakefile |