Sha256: d747f2d9984ff31ed63c0ab6ea2dc8ee4c62234a0a670c1e9bd3800bbc2ce9d8

Contents?: true

Size: 653 Bytes

Versions: 4

Compression:

Stored size: 653 Bytes

Contents

module Utilities
  class SpecObject
    attr_reader :instance
    attr_accessor :enable_beaker_tests, :parameters, :types, :resources, :type

    def initialize(mod_instance)
      @instance = mod_instance
    end

    def types
      instance.types
    end

    def module_name
      instance.module_name
    end

    def module_path
      instance.module_path
    end

    def get_binding
      binding
    end

    def enable_beaker_tests?
      @enable_beaker_tests == true
    end

    # allows the user to use the variable store to resolve the variable if it exists
    def variable_value(key)
      VariableStore.resolve(key)
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
puppet-retrospec-0.7.2 lib/retrospec/spec_object.rb
puppet-retrospec-0.7.0 lib/retrospec/spec_object.rb
puppet-retrospec-0.6.1 lib/retrospec/spec_object.rb
puppet-retrospec-0.6.0 lib/retrospec/spec_object.rb