Class: Convergence::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/convergence/command.rb

Direct Known Subclasses

Apply, Diff, Dryrun, Export, RollbackDryrun

Defined Under Namespace

Classes: Apply, Diff, Dryrun, Export, RollbackDryrun

Instance Method Summary collapse

Constructor Details

#initialize(opts, config: nil) ⇒ Command

Returns a new instance of Command.



6
7
8
9
10
11
12
13
# File 'lib/convergence/command.rb', line 6

def initialize(opts, config: nil)
  @opts = opts
  if config.nil?
    @config = Convergence::Config.load(opts[:config]) if @opts[:config]
  else
    @config = config
  end
end