Class: Cody::CLI::Status
Instance Method Summary collapse
Methods inherited from Base
#build_id, #check_build_id!, #initialize, #run_with_exception_handling
Methods included from AwsServices
Methods included from AwsServices::Helpers
#are_you_sure?, #find_stack, #inferred_project_name, #inferred_stack_name, #normalize_stack_name, #project_name_convention, #stack_exists?
Constructor Details
This class inherits a constructor from Cody::CLI::Base
Instance Method Details
#run ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/cody/cli/status.rb', line 3 def run check_build_id! 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 |