Parent

Class Index [+]

Quicksearch

Bundler::Source::Path::Installer

Public Class Methods

new(spec, options = {}) click to toggle source
     # File lib/bundler/source.rb, line 383
383:         def initialize(spec, options = {})
384:           @spec              = spec
385:           @bin_dir           = Bundler.requires_sudo? ? "#{Bundler.tmp}/bin" : "#{Bundler.rubygems.gem_dir}/bin"
386:           @gem_dir           = Bundler.rubygems.path(spec.full_gem_path)
387:           @wrappers          = options[:wrappers] || true
388:           @env_shebang       = options[:env_shebang] || true
389:           @format_executable = options[:format_executable] || false
390:         end

Public Instance Methods

generate_bin() click to toggle source
     # File lib/bundler/source.rb, line 392
392:         def generate_bin
393:           return if spec.executables.nil? || spec.executables.empty?
394: 
395:           if Bundler.requires_sudo?
396:             FileUtils.mkdir_p("#{Bundler.tmp}/bin") unless File.exist?("#{Bundler.tmp}/bin")
397:           end
398:           super
399:           if Bundler.requires_sudo?
400:             Bundler.mkdir_p "#{Bundler.rubygems.gem_dir}/bin"
401:             spec.executables.each do |exe|
402:               Bundler.sudo "cp -R #{Bundler.tmp}/bin/#{exe} #{Bundler.rubygems.gem_dir}/bin/"
403:             end
404:           end
405:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.