Class: Cody::Status
Instance Method Summary collapse
Methods inherited from Base
#build_id, #initialize, #run_with_exception_handling
Methods included from AwsServices
Methods included from AwsServices::Helpers
#are_you_sure?, #inferred_project_name, #inferred_stack_name, #project_name_convention, #stack_exists?
Constructor Details
This class inherits a constructor from Cody::Base
Instance Method Details
#run ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/cody/status.rb', line 3 def run run_with_exception_handling do puts "Build id: #{build_id}" resp = codebuild.batch_get_builds(ids: [build_id]) build = resp.builds.first puts "Build status: #{colored(build.build_status)}" end end |