Class: Avm::Sources::Base::Runners::RunnersFromModule

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/sources/base/runners.rb

Instance Method Summary collapse

Instance Method Details

#resultHash<String, EacCli::Runner>

Returns:

  • (Hash<String, EacCli::Runner>)


28
29
30
31
32
# File 'lib/avm/sources/base/runners.rb', line 28

def result
  return {} if runners_module.blank?

  ::EacCli::RunnerWith::Subcommands.subcommands_from_module(runners_module)
end

#runners_module_uncachedObject



34
35
36
37
38
39
40
41
42
# File 'lib/avm/sources/base/runners.rb', line 34

def runners_module_uncached
  return nil if the_module.module_parent.blank?

  begin
    the_module.module_parent.const_get('Runners')
  rescue ::NameError
    nil
  end
end