2012-09-10 19:00:18 -04:00
|
|
|
#!/usr/bin/env ruby
|
2013-07-29 20:17:04 -04:00
|
|
|
|
2013-06-21 17:54:32 -04:00
|
|
|
trap('INT') do |status|
|
2014-10-02 16:11:27 -04:00
|
|
|
effective_status = status ? status + 128 : 128
|
|
|
|
exit! effective_status
|
2013-06-21 17:54:32 -04:00
|
|
|
end
|
|
|
|
|
2012-09-10 19:00:18 -04:00
|
|
|
require 'mutant'
|
|
|
|
|
|
|
|
namespace =
|
2013-07-27 06:25:22 -04:00
|
|
|
if ARGV.include?('--zombie')
|
|
|
|
$stderr.puts('Running mutant zombified!')
|
2015-06-06 18:29:47 -04:00
|
|
|
Mutant::Zombifier.call(
|
|
|
|
namespace: :Zombie,
|
|
|
|
load_path: $LOAD_PATH,
|
|
|
|
kernel: Kernel,
|
|
|
|
pathname: Pathname,
|
2015-11-21 17:02:51 -05:00
|
|
|
require_highjack: Mutant::RequireHighjack
|
|
|
|
.method(:call)
|
|
|
|
.to_proc
|
|
|
|
.curry
|
|
|
|
.call(Kernel),
|
2015-06-06 18:29:47 -04:00
|
|
|
root_require: 'mutant',
|
|
|
|
includes: %w[
|
|
|
|
mutant
|
|
|
|
unparser
|
|
|
|
morpher
|
|
|
|
adamantium
|
|
|
|
equalizer
|
|
|
|
anima
|
|
|
|
concord
|
|
|
|
]
|
|
|
|
)
|
2013-06-28 17:24:46 -04:00
|
|
|
Zombie::Mutant
|
2012-09-10 19:00:18 -04:00
|
|
|
else
|
|
|
|
Mutant
|
|
|
|
end
|
|
|
|
|
2012-11-24 11:36:47 -05:00
|
|
|
Kernel.exit(namespace::CLI.run(ARGV))
|