module Stax::Codepipeline

Public Class Methods

included(thor) click to toggle source
# File lib/stax/mixin/codepipeline.rb, line 5
def self.included(thor)
  thor.desc(:codepipeline, 'Codepipeline subcommands')
  thor.subcommand(:codepipeline, Cmd::Codepipeline)
end

Public Instance Methods

stack_pipeline_names() click to toggle source
# File lib/stax/mixin/codepipeline.rb, line 14
def stack_pipeline_names
  @_stack_pipeline_names ||= stack_pipelines.map(&:physical_resource_id)
end
stack_pipeline_status(n = 0) click to toggle source

get status string for n-th pipeline

# File lib/stax/mixin/codepipeline.rb, line 19
def stack_pipeline_status(n = 0)
  name = stack_pipeline_names[n]
  Aws::Codepipeline.executions(name, 1)&.first&.status
end
stack_pipelines() click to toggle source
# File lib/stax/mixin/codepipeline.rb, line 10
def stack_pipelines
  @_stack_pipelines ||= Aws::Cfn.resources_by_type(stack_name, 'AWS::CodePipeline::Pipeline')
end