Top Level Namespace

Defined Under Namespace

Modules: Rake

Instance Method Summary collapse

Instance Method Details

#cfn_get_stack_output(stack_name, region, output_key) ⇒ Object



92
93
94
95
# File 'lib/rake/cloud_formation.rb', line 92

def cfn_get_stack_output(stack_name, region, output_key)
  Rake::CloudFormation::Service.cf(region).describe_stacks({stack_name: stack_name}).stacks.first.outputs
    .detect { |o| o.output_key === output_key }.output_value
end

#cfn_stack(args, &block) ⇒ Object



88
89
90
# File 'lib/rake/cloud_formation.rb', line 88

def cfn_stack(args, &block)
  Rake::CloudFormation::Stack.define_task(args, &block)
end

#cfn_stack_output(*args) ⇒ Object



97
98
99
# File 'lib/rake/cloud_formation.rb', line 97

def cfn_stack_output(*args)
  Proc.new { cfn_get_stack_output(*args) }
end