Class: Kubes::Compiler::Dsl::Core::Base

Inherits:
Object
  • Object
show all
Extended by:
Fields
Includes:
DslEvaluator, Helpers, Shared::RuntimeHelpers
Defined in:
lib/kubes/compiler/dsl/core/base.rb

Direct Known Subclasses

Blocks, Syntax::Resource

Instance Method Summary collapse

Methods included from Fields

field, fields

Methods included from Shared::RuntimeHelpers

#base_class_for_helper, #load_custom_helpers, #load_custom_variables, #load_plugin_helpers, #load_runtime_helpers, #show_variable_layer_path

Methods included from Util::Pretty

#pretty_path

Methods included from Shared::Helpers::SecretHelper

#decode64, #encode64, #generic_secret_data, #parse_env_like_line

Methods included from Shared::Helpers::ExtraHelper

#extra, #with_extra

Methods included from Shared::Helpers::DockerHelper

#built_image, #built_image_helper, #docker_image

Methods included from Shared::Helpers::ConfigMapHelper

#config_map_files

Methods included from Helpers

#dockerfile_port

Constructor Details

#initialize(options = {}) ⇒ Base

Returns a new instance of Base.



8
9
10
11
12
13
# File 'lib/kubes/compiler/dsl/core/base.rb', line 8

def initialize(options={})
  @options = options
  @name = options[:name]
  @path = options[:path]
  load_runtime_helpers
end

Instance Method Details

#runObject



15
16
17
18
# File 'lib/kubes/compiler/dsl/core/base.rb', line 15

def run
  evaluate_file(@path) # main resource definition
  result
end