Sha256: 585b842c55a1b66dcd0b56b359c652dd2eec1b5c2ff1d86e493ff13fe74f2f7a

Contents?: true

Size: 793 Bytes

Versions: 4

Compression:

Stored size: 793 Bytes

Contents

#!/usr/bin/env ruby

trap('INT') do |status|
  effective_status = status ? status + 128 : 128
  exit! effective_status
end

require 'mutant'

namespace =
  if ARGV.include?('--zombie')
    $stderr.puts('Running mutant zombified!')
    Mutant::Zombifier.call(
      namespace:        :Zombie,
      load_path:        $LOAD_PATH,
      kernel:           Kernel,
      pathname:         Pathname,
      require_highjack: Mutant::RequireHighjack
        .method(:call)
        .to_proc
        .curry
        .call(Kernel),
      root_require:     'mutant',
      includes:         %w[
        mutant
        unparser
        morpher
        adamantium
        equalizer
        anima
        concord
      ]
    )
    Zombie::Mutant
  else
    Mutant
  end

Kernel.exit(namespace::CLI.run(ARGV))

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mutant-0.8.16 bin/mutant
mutant-0.8.15 bin/mutant
mutant-0.8.14 bin/mutant
mutant-0.8.13 bin/mutant