File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,12 @@ OptionParser.new do |opts|
1919 options [ :namespace ] = namespace
2020 end
2121
22+ opts . on ( '-b bolt_project' , '--bolt-project bolt_project' , 'Check all modules within a bolt-project.yaml file.' ) do |bolt_project |
23+ raise 'You must specify a valid bolt-project.yaml' unless File . exist? ( bolt_project ) || bolt_project . end_with? ( '.yaml' )
24+
25+ options [ :bolt_project ] = bolt_project
26+ end
27+
2228 opts . on ( '--endorsement endorsement' , 'Filter a namespace search by endorsement (supported/approved/partner).' ) do |endorsement |
2329 raise 'You may only filter by one endorsement at a time' if options [ :endorsement ]
2430
@@ -86,8 +92,8 @@ if options[:namespace]
8692 runner . resolve_from_namespace ( options [ :namespace ] , options [ :endorsement ] )
8793
8894elsif ARGV . empty?
89- puts "No module criteria specified. Defaulting to IAC supported modules.\n \n "
90- runner . resolve_from_path ( 'https://puppetlabs.github.io/iac /modules.json' )
95+ puts "No module criteria specified. Defaulting to CAT supported modules.\n \n "
96+ runner . resolve_from_path ( 'https://puppetlabs.github.io/content-and-tooling-team /modules/list .json' )
9197
9298elsif ARGV . map { |arg | File . basename arg } != [ 'metadata.json' ]
9399 runner . resolve_from_path ( ARGV . first )
You can’t perform that action at this time.
0 commit comments