Sha256: 89e86e8086f45bafbfea68ad257539770187317ea94fc03dd4c2eb9173cb62e7
Contents?: true
Size: 1.21 KB
Versions: 4
Compression:
Stored size: 1.21 KB
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)} ..." install(path) end end end desc "Installs all built gem packages" gemspec_tasks :install task :install_gem => :install # backwards compatibility with Hoe end # # Pushes the gem by running `gem install`. # # @param [String] path # The path to the `.gem` file. # # @return [Boolean] # Specifies whether `gem install` was successful or not. # # @api semipublic # def install(path) run 'gem', 'install', '-q', path end end end end
Version data entries
4 entries across 4 versions & 1 rubygems