Sha256: f7c0711b057122cb70279f4e55352af70f679037a9a6a2056df6e3bceb2e887e
Contents?: true
Size: 661 Bytes
Versions: 5
Compression:
Stored size: 661 Bytes
Contents
# Base only for Stop and Start currently. module Cody class Base include AwsServices def initialize(options) @options = options @project_name = options[:project_name] || inferred_project_name @full_project_name = project_name_convention(@project_name) end def run_with_exception_handling yield rescue Aws::CodeBuild::Errors::ResourceNotFoundException => e puts "ERROR: #{e.class}: #{e.message}".color(:red) puts "CodeBuild project #{@full_project_name} not found." rescue Aws::CodeBuild::Errors::InvalidInputException => e puts "ERROR: #{e.class}: #{e.message}".color(:red) end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
cody-0.8.6 | lib/cody/base.rb |
cody-0.8.5 | lib/cody/base.rb |
cody-0.8.4 | lib/cody/base.rb |
cody-0.8.3 | lib/cody/base.rb |
cody-0.8.2 | lib/cody/base.rb |