Class: StackMaster::ParameterResolvers::SnsTopicName
- Defined in:
- lib/stack_master/parameter_resolvers/sns_topic_name.rb
Constant Summary collapse
- TopicNotFound =
Class.new(StandardError)
Instance Method Summary collapse
-
#initialize(config, stack_definition) ⇒ SnsTopicName
constructor
A new instance of SnsTopicName.
- #resolve(value) ⇒ Object
Methods inherited from Resolver
Constructor Details
#initialize(config, stack_definition) ⇒ SnsTopicName
Returns a new instance of SnsTopicName.
8 9 10 11 |
# File 'lib/stack_master/parameter_resolvers/sns_topic_name.rb', line 8 def initialize(config, stack_definition) @config = config @stack_definition = stack_definition end |
Instance Method Details
#resolve(value) ⇒ Object
13 14 15 16 17 |
# File 'lib/stack_master/parameter_resolvers/sns_topic_name.rb', line 13 def resolve(value) sns_topic_finder.find(value) rescue StackMaster::SnsTopicFinder::TopicNotFound => e raise TopicNotFound.new(e.) end |