Sha256: 0f5a16717f7eee2803f84f40c46a2913f2d12f1f3c85214990bf82e7957bad3d
Contents?: true
Size: 1.32 KB
Versions: 7
Compression:
Stored size: 1.32 KB
Contents
require 'build-tool/commands' module BuildTool; module Commands; # # BuildCommand # class Info < Standard name "info" description "show info" long_description [ "Show information about the currently used recipe" ] def initialize_options @options.banner = "Usage: #{Pathname.new($0).basename} #{self.fullname}" super end def applicable? BuildTool::Application.instance.name != "build-tool" end def do_execute( args ) if args.length != 0 # *TODO* print better message logger.warn "Arguments ignored." end recipe = configuration.recipe say "Recipe" say "------" say "Name: #{recipe.name}" say "Short: #{recipe.short_description}" say "Long: #{recipe.long_description}" say "Full Path: #{recipe.global_config_file_path('recipe')}" say "" say "Configuration" say "-------------" say "Settings: #{ Application::instance.local_settings_file_path }" say "Overrides: #{ recipe.local_config_file_path( 'recipe' ) }" return 0 end end # class Info end; end # module BuildTool::Commands
Version data entries
7 entries across 7 versions & 1 rubygems