Sha256: 109fcdcde68b801decc9a903b27d08bb49a5180d20a83565fee106378db1aaca

Contents?: true

Size: 1.18 KB

Versions: 31

Compression:

Stored size: 1.18 KB

Contents

require 'hybrid_platforms_conductor/logger_helpers'
require 'hybrid_platforms_conductor/plugin'

module HybridPlatformsConductor

  # Base class for any CMDB plugin
  class Cmdb < Plugin

    # Constructor
    #
    # Parameters::
    # * *logger* (Logger): Logger to be used [default: Logger.new(STDOUT)]
    # * *logger_stderr* (Logger): Logger to be used for stderr [default: Logger.new(STDERR)]
    # * *config* (Config): Config to be used. [default: Config.new]
    # * *cmd_runner* (CmdRunner): Command Runner to be used. [default: CmdRunner.new]
    # * *platforms_handler* (PlatformsHandler): Platforms Handler to be used. [default: PlatformsHandler.new]
    # * *nodes_handler* (NodesHandler): Nodes Handler to be used. [default: NodesHandler.new]
    def initialize(
      logger: Logger.new($stdout),
      logger_stderr: Logger.new($stderr),
      config: Config.new,
      cmd_runner: CmdRunner.new,
      platforms_handler: PlatformsHandler.new,
      nodes_handler: NodesHandler.new
    )
      super(logger: logger, logger_stderr: logger_stderr, config: config)
      @cmd_runner = cmd_runner
      @platforms_handler = platforms_handler
      @nodes_handler = nodes_handler
    end

  end

end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
hybrid_platforms_conductor-33.9.5 lib/hybrid_platforms_conductor/cmdb.rb
hybrid_platforms_conductor-33.9.4 lib/hybrid_platforms_conductor/cmdb.rb
hybrid_platforms_conductor-33.9.2 lib/hybrid_platforms_conductor/cmdb.rb
hybrid_platforms_conductor-33.9.1 lib/hybrid_platforms_conductor/cmdb.rb
hybrid_platforms_conductor-33.9.0 lib/hybrid_platforms_conductor/cmdb.rb
hybrid_platforms_conductor-33.8.4 lib/hybrid_platforms_conductor/cmdb.rb
hybrid_platforms_conductor-33.8.3 lib/hybrid_platforms_conductor/cmdb.rb
hybrid_platforms_conductor-33.8.2 lib/hybrid_platforms_conductor/cmdb.rb
hybrid_platforms_conductor-33.8.1 lib/hybrid_platforms_conductor/cmdb.rb
hybrid_platforms_conductor-33.8.0 lib/hybrid_platforms_conductor/cmdb.rb
hybrid_platforms_conductor-33.7.4 lib/hybrid_platforms_conductor/cmdb.rb
hybrid_platforms_conductor-33.7.3 lib/hybrid_platforms_conductor/cmdb.rb
hybrid_platforms_conductor-33.7.2 lib/hybrid_platforms_conductor/cmdb.rb
hybrid_platforms_conductor-33.7.1 lib/hybrid_platforms_conductor/cmdb.rb
hybrid_platforms_conductor-33.7.0 lib/hybrid_platforms_conductor/cmdb.rb
hybrid_platforms_conductor-33.6.0 lib/hybrid_platforms_conductor/cmdb.rb
hybrid_platforms_conductor-33.5.1 lib/hybrid_platforms_conductor/cmdb.rb
hybrid_platforms_conductor-33.5.0 lib/hybrid_platforms_conductor/cmdb.rb
hybrid_platforms_conductor-33.4.0 lib/hybrid_platforms_conductor/cmdb.rb
hybrid_platforms_conductor-33.3.0 lib/hybrid_platforms_conductor/cmdb.rb