Commit e65c2ee5 authored by Fabio Pelosin's avatar Fabio Pelosin

[Command::IPC] Drop eval

parent 68252e6f
...@@ -136,7 +136,7 @@ module Pod ...@@ -136,7 +136,7 @@ module Pod
repl_commands = repl_command.split repl_commands = repl_command.split
subcommand = repl_commands.shift.capitalize subcommand = repl_commands.shift.capitalize
arguments = repl_commands arguments = repl_commands
subcommand_class = eval("Pod::Command::IPC::#{subcommand}") subcommand_class = Pod::Command::IPC.const_get(subcommand)
subcommand_class.new(CLAide::ARGV.new(arguments)).run subcommand_class.new(CLAide::ARGV.new(arguments)).run
signal_ready signal_ready
end end
......
...@@ -57,7 +57,7 @@ module Pod ...@@ -57,7 +57,7 @@ module Pod
command.run command.run
out = UI.output out = UI.output
out.should.match /version: #{Pod::VERSION}/ out.should.match /version: '#{Pod::VERSION}'/
end end
it "converts forwards the commands to the other ipc subcommands prints the result to STDOUT" do it "converts forwards the commands to the other ipc subcommands prints the result to STDOUT" do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment