class Svnx::Base::CommandFactory

Public Class Methods

new(cmdlinefactory = CommandLineFactory.new) click to toggle source
# File lib/svnx/base/command_factory.rb, line 21
def initialize cmdlinefactory = CommandLineFactory.new
  @cmdlinefactory = cmdlinefactory
end

Public Instance Methods

command_line_factory() click to toggle source
# File lib/svnx/base/command_factory.rb, line 36
def command_line_factory
  @cmdlinefactory
end
create(cmdcls, cmdlinecls: nil) click to toggle source
# File lib/svnx/base/command_factory.rb, line 25
def create cmdcls, cmdlinecls: nil
  melements = ClassUtil.module_elements cmdcls
  
  optcls = begin
             modl = ClassUtil.find_module cmdcls
             modl::Options
           end
  
  CommandParams.new options: optcls, subcommand: melements[-1].downcase
end