Sha256: b829e2fb906fb7bed12c963ffe30e538fe6d543a24a0071d4bad5b38e1d92d91

Contents?: true

Size: 622 Bytes

Versions: 9

Compression:

Stored size: 622 Bytes

Contents

module Kubes::Compiler::Dsl::Core
  class Base
    extend Fields
    include DslEvaluator
    include Helpers
    include Kubes::Compiler::Shared::CustomHelpers
    include Kubes::Compiler::Shared::CustomVariables
    include Kubes::Compiler::Shared::PluginHelpers

    def initialize(options={})
      @options = options
      @name = options[:name]
      @path = options[:path]
      load_plugin_helpers
      load_custom_variables
      load_custom_helpers
    end

    def run
      evaluate_file(@path) # main resource definition
      result if respond_to?(:result) # block form doesnt have result
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
kubes-0.6.8 lib/kubes/compiler/dsl/core/base.rb
kubes-0.6.7 lib/kubes/compiler/dsl/core/base.rb
kubes-0.6.6 lib/kubes/compiler/dsl/core/base.rb
kubes-0.6.5 lib/kubes/compiler/dsl/core/base.rb
kubes-0.6.4 lib/kubes/compiler/dsl/core/base.rb
kubes-0.6.3 lib/kubes/compiler/dsl/core/base.rb
kubes-0.6.2 lib/kubes/compiler/dsl/core/base.rb
kubes-0.6.1 lib/kubes/compiler/dsl/core/base.rb
kubes-0.6.0 lib/kubes/compiler/dsl/core/base.rb