Sha256: 37fc9c3ac16c2d7b8537cc962a7a91e8706f7068df434d786f5e44a89b80e65f
Contents?: true
Size: 1.45 KB
Versions: 7
Compression:
Stored size: 1.45 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.name != "build-tool" 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
7 entries across 7 versions & 1 rubygems