Class: Chamber::Commands::Compare
- Includes:
- Comparable
- Defined in:
- lib/chamber/commands/compare.rb
Instance Attribute Summary collapse
-
#first_settings_instance ⇒ Object
Returns the value of attribute first_settings_instance.
-
#second_settings_instance ⇒ Object
Returns the value of attribute second_settings_instance.
Attributes inherited from Base
#chamber, #dry_run, #rootpath, #shell
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(first:, second:, **args) ⇒ Compare
constructor
A new instance of Compare.
Methods included from Comparable
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_instance ⇒ Object
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_instance ⇒ Object
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 |