Sha256: 6975e005a436eca9b8a71c65d12f44c73349f1947ea8918366580222247c01b8
Contents?: true
Size: 1.16 KB
Versions: 6
Compression:
Stored size: 1.16 KB
Contents
require 'build-tool/commands' module BuildTool; module Commands; # # BuildCommand # class Info < Standard name "info" description "show info" def initialize_options 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
6 entries across 6 versions & 1 rubygems