Sha256: 0b187573a0fce66ca090c53f671cf1690d44bb5f2ed6142fd1816aea2d1d6acd
Contents?: true
Size: 1.12 KB
Versions: 6
Compression:
Stored size: 1.12 KB
Contents
require 'build-tool/commands' require 'build-tool/recipe' module BuildTool; module Commands; module Recipes # # BuildCommand # class Info < Standard name "info" description "show information about a module." def initialize_options super end def do_execute( args ) if ( args.length != 1 ) return usage( args.length == 0 ? "Not enough arguments" : "To many arguments" ) end rec = Recipe.new( args[0] ) say "Description: #{rec.short_description}" say "Website: #{rec.website}" if rec.website say "Repository: #{rec.repository}" if rec.repository say "Browse Repository: #{rec.browse_repository}" if rec.browse_repository if rec.long_description say "Long Description:" for line in rec.long_description say " #{line.chomp}" end say "" end return 0 end end # class end; end # module Commands::Recipes end; # module BuildTool
Version data entries
6 entries across 6 versions & 1 rubygems