Sha256: 4624e4aa70b3cde919853cdb1c75db2109d6d8bde9bb01f7e9144c1e9681da80

Contents?: true

Size: 749 Bytes

Versions: 9

Compression:

Stored size: 749 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

9 entries across 9 versions & 1 rubygems

Version Path
mutant-0.8.8 bin/mutant
mutant-0.8.7 bin/mutant
mutant-0.8.6 bin/mutant
mutant-0.8.5 bin/mutant
mutant-0.8.4 bin/mutant
mutant-0.8.3 bin/mutant
mutant-0.8.2 bin/mutant
mutant-0.8.1 bin/mutant
mutant-0.8.0 bin/mutant