Class: Kubes::Compiler::Strategy::Base

Inherits:
Object
  • Object
show all
Includes:
Layering, Util::Normalize, Util::SaveFile, Logging, Util::Pretty
Defined in:
lib/kubes/compiler/strategy/base.rb

Direct Known Subclasses

Dispatcher, Erb, Pass

Instance Method Summary collapse

Methods included from Util::Pretty

#pretty_path

Methods included from Logging

#logger

Methods included from Util::SaveFile

#save_file

Methods included from Util::Normalize

#extract_type, #normalize_kind

Methods included from Layering

#add_exts, #post_layers, #pre_layers

Constructor Details

#initialize(options = {}) ⇒ Base

Returns a new instance of Base.



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

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