lib/jets/stack/definition.rb in jets-4.0.12 vs lib/jets/stack/definition.rb in jets-5.0.0.beta1
- old
+ new
@@ -3,10 +3,11 @@
# template - method should use @definition to build a CloudFormation template section
#
class Jets::Stack
module Definition
extend ActiveSupport::Concern
+ include Jets::Util::Camelize
# Example of usage that leads here:
#
# Parameter.new(self, *definition).register
#
@@ -18,13 +19,9 @@
@definition = definition.flatten
end
def register
self.class.register(@subclass, *@definition)
- end
-
- def camelize(attributes)
- Jets::Camelizer.transform(attributes)
end
class_methods do
def register(subclass, *definition)
@definitions ||= {}