bin/tailstrom in tailstrom-0.0.5 vs bin/tailstrom in tailstrom-0.0.6
- old
+ new
@@ -47,8 +47,8 @@
if infile = ARGV.shift
options[:static_infile] = open(infile, 'r')
end
require "tailstrom/command/#{options[:mode]}"
-cls = Module.const_get "Tailstrom::Command::#{options[:mode].capitalize}"
+cls = Tailstrom::Command.const_get options[:mode].to_s.capitalize
cmd = cls.new options
cmd.run