Class: Avm::With::ExtraSubcommands::RunnersFromModule

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/with/extra_subcommands.rb

Instance Method Summary collapse

Instance Method Details

#resultHash<String, EacCli::Runner>

Returns:

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


26
27
28
29
30
# File 'lib/avm/with/extra_subcommands.rb', line 26

def result
  return {} if runners_module.blank?

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

#runners_module_uncachedObject



32
33
34
35
36
37
38
39
40
# File 'lib/avm/with/extra_subcommands.rb', line 32

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