Parent

Class Index [+]

Quicksearch

Bundler::Source::Path::Installer

Public Class Methods

new(spec, options = {}) click to toggle source
     # File lib/bundler/source.rb, line 370
370:         def initialize(spec, options = {})
371:           @spec              = spec
372:           @bin_dir           = Bundler.requires_sudo? ? "#{Bundler.tmp}/bin" : "#{Gem.dir}/bin"
373:           @gem_dir           = spec.full_gem_path
374:           @wrappers          = options[:wrappers] || true
375:           @env_shebang       = options[:env_shebang] || true
376:           @format_executable = options[:format_executable] || false
377:         end

Public Instance Methods

generate_bin() click to toggle source
     # File lib/bundler/source.rb, line 379
379:         def generate_bin
380:           return if spec.executables.nil? || spec.executables.empty?
381: 
382:           if Bundler.requires_sudo?
383:             FileUtils.mkdir_p("#{Bundler.tmp}/bin") unless File.exist?("#{Bundler.tmp}/bin")
384:           end
385:           super
386:           if Bundler.requires_sudo?
387:             Bundler.mkdir_p "#{Gem.dir}/bin"
388:             spec.executables.each do |exe|
389:               Bundler.sudo "cp -R #{Bundler.tmp}/bin/#{exe} #{Gem.dir}/bin/"
390:             end
391:           end
392:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.