Module: Matrixeval

Defined in:
lib/matrixeval.rb,
lib/matrixeval/config.rb,
lib/matrixeval/runner.rb,
lib/matrixeval/target.rb,
lib/matrixeval/vector.rb,
lib/matrixeval/context.rb,
lib/matrixeval/variant.rb,
lib/matrixeval/version.rb,
lib/matrixeval/container.rb,
lib/matrixeval/gitignore.rb,
lib/matrixeval/config/yaml.rb,
lib/matrixeval/command_line.rb,
lib/matrixeval/docker_compose.rb,
lib/matrixeval/extra_mount_files.rb,
lib/matrixeval/docker_compose/file.rb,
lib/matrixeval/docker_compose/extend.rb,
lib/matrixeval/docker_compose/extend_raw.rb,
lib/matrixeval/context/find_by_command_options.rb,
lib/matrixeval/command_line/parse_init_arguments.rb,
lib/matrixeval/context/build_docker_compose_extend.rb,
lib/matrixeval/command_line/parse_context_arguments.rb

Defined Under Namespace

Classes: CommandLine, Config, Container, Context, DockerCompose, Error, ExtraMountFiles, Gitignore, Runner, Target, Variant, Vector

Constant Summary collapse

VERSION =
"0.4.3"
COMMANDS =
['bash', 'dash', 'sh', 'zsh']

Class Method Summary collapse

Class Method Details

.register_target(target_name, target_klass) ⇒ Object



35
36
37
# File 'lib/matrixeval.rb', line 35

def register_target(target_name, target_klass)
  targets[target_name] = target_klass
end

.rootObject



47
48
49
# File 'lib/matrixeval.rb', line 47

def root
  Pathname.new("#{__dir__}/..")
end

.start(argv) ⇒ Object



31
32
33
# File 'lib/matrixeval.rb', line 31

def start(argv)
  Runner.start(argv)
end

.targetsObject



39
40
41
# File 'lib/matrixeval.rb', line 39

def targets
  @targets ||= {}
end

.working_dirObject



43
44
45
# File 'lib/matrixeval.rb', line 43

def working_dir
  Pathname.new(Dir.getwd)
end