Module: Avm::WithDynamicRunners

Included in:
Instances::Base, Sources::Base
Defined in:
lib/avm/with_dynamic_runners.rb

Defined Under Namespace

Classes: RunnersFromModule

Instance Method Summary collapse

Instance Method Details

#extra_available_subcommandsHash<String, EacCli::Runner>



9
10
11
# File 'lib/avm/with_dynamic_runners.rb', line 9

def extra_available_subcommands
  extra_available_subcommands_from_runners_module
end

#extra_available_subcommands_from_runners_moduleHash<String, EacCli::Runner>



14
15
16
17
18
# File 'lib/avm/with_dynamic_runners.rb', line 14

def extra_available_subcommands_from_runners_module
  self.class.ancestors.reverse.inject({}) do |a, e|
    a.merge(RunnersFromModule.new(e).result)
  end
end