Class: Chamber::Commands::Compare

Inherits:
Base
  • Object
show all
Includes:
Comparable
Defined in:
lib/chamber/commands/compare.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#chamber, #dry_run, #rootpath, #shell

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Comparable

#call

Constructor Details

#initialize(first:, second:, **args) ⇒ Compare

Returns a new instance of Compare.



19
20
21
22
23
24
# File 'lib/chamber/commands/compare.rb', line 19

def initialize(first:, second:, **args)
  super(**args)

  self.first_settings_instance  = Chamber::Instance.new(args.merge(namespaces: first))
  self.second_settings_instance = Chamber::Instance.new(args.merge(namespaces: second))
end

Instance Attribute Details

#first_settings_instanceObject

Returns the value of attribute first_settings_instance.



12
13
14
# File 'lib/chamber/commands/compare.rb', line 12

def first_settings_instance
  @first_settings_instance
end

#second_settings_instanceObject

Returns the value of attribute second_settings_instance.



12
13
14
# File 'lib/chamber/commands/compare.rb', line 12

def second_settings_instance
  @second_settings_instance
end

Class Method Details

.call(**args) ⇒ Object



15
16
17
# File 'lib/chamber/commands/compare.rb', line 15

def self.call(**args)
  new(**args).call
end