Module: Wukong::Runner::CodeLoader

Included in:
Wukong::Runner
Defined in:
lib/wukong/runner/code_loader.rb

Overview

Defines methods to help a Runner class load code passed in dynamically on the command-line.

The default behavior of code in this module is to load any Ruby files (ending with .rb) passed in the command-line.

Instance Method Summary collapse

Instance Method Details

#load_argsObject

Loads all code, whether from a deploy pack or additionally passed on the command line.



13
14
15
16
17
# File 'lib/wukong/runner/code_loader.rb', line 13

def load_args
  (args_to_load || []).each do |path|
    load_ruby_file(path)
  end
end