lib/cloud_powers/resource.rb in cloud_powers-1.1.0 vs lib/cloud_powers/resource.rb in cloud_powers-1.1.1
- old
+ new
@@ -31,9 +31,10 @@
# Usually this method is called by calling +super+ in another class that
# inherits from this class. The initialize method follows the method
# signature for the active record-like pattern being followed throughout
# the code
def initialize(name:, **config)
+ @project_root = config[:project_root]
@linked = false
@saved = false
@client = config[:client]
@type = to_snake(config[:named_type] || config[:type] || self.class.name.split('::').last)
@call_name = to_snake("#{name}_#{@type}")