Class: Kubes::Compiler::Strategy::Pass

Inherits:
Base
  • Object
show all
Defined in:
lib/kubes/compiler/strategy/pass.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

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

This class inherits a constructor from Kubes::Compiler::Strategy::Base

Instance Method Details

#runObject



3
4
5
6
7
# File 'lib/kubes/compiler/strategy/pass.rb', line 3

def run
  # use filehandle instead of content. write is aware of this and handles properly
  io = File.read(@path)
  Result.new(@save_file, io)
end