Method: Jets::Resource::ChildStack::Shared#shared_logical_id
- Defined in:
- lib/jets/resource/child_stack/shared.rb
#shared_logical_id ⇒ Object
map the path to a camelized logical_id. Example:
/tmp/jets/demo/templates/demo-dev-2-shared-resources.yml to
PostsController
64 65 66 67 68 |
# File 'lib/jets/resource/child_stack/shared.rb', line 64 def shared_logical_id regexp = Regexp.new(".*#{Jets.config.project_namespace}-shared-") # remove the shared shared_name = @path.sub(regexp, '').sub('.yml', '') shared_name.underscore.camelize end |