Class: Chamber::Commands::Compare

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

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Comparable

#call

Constructor Details

#initialize(options = {}) ⇒ Compare

Returns a new instance of Compare.



10
11
12
13
14
15
16
17
18
# File 'lib/chamber/commands/compare.rb', line 10

def initialize(options = {})
  super

  first_settings_options        = options.merge(namespaces: options[:first])
  self.first_settings_instance  = Chamber::Instance.new(first_settings_options)

  second_settings_options       = options.merge(namespaces: options[:second])
  self.second_settings_instance = Chamber::Instance.new(second_settings_options)
end

Class Method Details

.call(options = {}) ⇒ Object



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

def self.call(options = {})
  self.new(options).call
end