lib/terraspace_bundler/dsl.rb in terraspace-bundler-0.1.0 vs lib/terraspace_bundler/dsl.rb in terraspace-bundler-0.2.0

- old
+ new

@@ -1,18 +1,21 @@ module TerraspaceBundler class Dsl include DslEvaluator include Syntax - class_attribute :meta - self.meta = {global: {}, mods: []} + class_attribute :meta, default: {global: {}, mods: []} def run evaluate_file(TB.config.terrafile) - self.class.meta + self end def meta self.class.meta + end + + def global + meta[:global] end end end