lib/eco/api/common/loaders/use_case.rb in eco-helpers-3.0.4 vs lib/eco/api/common/loaders/use_case.rb in eco-helpers-3.0.5
- old
+ new
@@ -24,9 +24,10 @@
raise ArgumentError, msg unless cli_class < Eco::API::UseCases::Cli
@cli = cli_class
elsif cli_class.nil?
return @cli if instance_variable_defined?(:@cli) && !@cli.nil?
+
# try to see if it's namespaced after the use case it provisions cli integration
begin
try_class = [to_s, 'Cli'].join('::')
@cli = Kernel.const_get(try_class)
rescue NameError