Can you turn it into a method, so the logic is reuable / not stuck in this
lambda


On Mon, Feb 18, 2013 at 11:05 AM, Zeke Fast <notifications@github.com>wrote:

> In lib/parallel_tests/cli.rb:
>
> > @@ -105,7 +107,18 @@ def self.parse_options!(argv)
> >
> >          opts.on("-e", "--exec [COMMAND]", "execute this code parallel and with ENV['TEST_ENV_NUM']") { |path| options[:execute] = path }
> >          opts.on("-o", "--test-options '[OPTIONS]'", "execute test commands with those options") { |arg| options[:test_options] = arg }
> > -        opts.on("-t", "--type [TYPE]", "test(default) / rspec / cucumber") { |type| options[:type] = type }
> > +        opts.on("-t", "--type [TYPE]", "test(default) / rspec / cucumber") do |type|
> > +          klass_name = "ParallelTests::#{type.capitalize.sub('Rspec', 'RSpec')}::Runner"
>
> Sorry, do not understand your comment. Could you rephrase it?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/grosser/parallel_tests/pull/184/files#r3052346>.
>
>