class Gem::Tasks::Install


The ‘install` task.

def define


Defines the `install` task.
def define
  namespace :install do
    @project.builds.each do |build,packages|
      path = packages[:gem]
      task build => path do
        status "Installing #{File.basename(path)} ..."
        install(path)
      end
    end
  end
  desc "Installs all built gem packages"
  gemspec_tasks :install
  task :install_gem => :install # backwards compatibility with Hoe
end

def initialize(options={})

Parameters:
  • options (Hash) --
def initialize(options={})
  super()
  yield self if block_given?
  define
end

def install(path)

Returns:
  • (Boolean) -

Parameters:
  • path (String) --
def install(path)
  run 'gem', 'install', '-q', path
end