Sha256: a5a1b7e44377de2c8a6ac7ddda111a2fc04d2181ba06d52c3ccb50f99e6ce6bc
Contents?: true
Size: 1.44 KB
Versions: 12
Compression:
Stored size: 1.44 KB
Contents
require 'build-tool/application' require 'build-tool/commands' module BuildTool; module Commands; class CtagsError < BuildTool::Error; end # # BuildCommand # class Install < ModuleBasedCommand include MJ::Tools::SubProcess name "install" description "install the module" long_description [ "Invokes the installation phase for the specified modules." ] # Log this command if $noop is not active def log? ! $noop end def initialize_options @options.banner = "Usage: #{Pathname.new($0).basename} #{self.fullname} MODULES..." @options.separator "Options:" @fast = false options.on( "--fast", "Fast install. No compile (if supported)" ) { |t| @fast = t } super end def applicable? BuildTool::Application.instance.has_recipe? end def is_module_ready?( mod ) isready = true if !mod.checkedout? logger.warn "#{mod.name}: module not checked out -> skipping." end return isready end def do_execute_module( mod ) if mod.checkedout? install( mod, @fast ) else logger.info "Not checked out. Skipping" end end end # class Build end; end # module BuildTool::Commands
Version data entries
12 entries across 12 versions & 1 rubygems