Sha256: d5ecd16808fa5c140fadc8ad11e666596c2ab8e2ed84b8c55f2e5d987d33a719
Contents?: true
Size: 907 Bytes
Versions: 1
Compression:
Stored size: 907 Bytes
Contents
require 'rubygems/tasks/task' module Gem class Tasks # # The `install` task. # class Install < Task # # Initializes the `install` task. # # @param [Hash] options # Additional options. # def initialize(options={}) super() yield self if block_given? define end # # 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)} ..." run 'gem', 'install', '-q', path end end end desc "Installs all built gem packages" gemspec_tasks :install task :install_gem => :install # backwards compatibility with Hoe end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubygems-tasks-0.1.0.pre1 | lib/rubygems/tasks/install.rb |