Method: Cody::CLI::Badge#run
- Defined in:
- lib/cody/cli/badge.rb
#run ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/cody/cli/badge.rb', line 3 def run resp = codebuild.batch_get_projects(names: [@full_project_name]) project = resp.projects.first unless project puts "Project not found: #{@full_project_name}" return end url = project.badge.badge_request_url if @options[:markdown] puts "" else puts url end end |