Method: Ej::Commands#initialize

Defined in:
lib/ej/commands.rb

#initialize(args = [], options = {}, config = {}) ⇒ Commands

Returns a new instance of Commands.



23
24
25
26
27
28
29
30
31
# File 'lib/ej/commands.rb', line 23

def initialize(args = [], options = {}, config = {})
  super(args, options, config)
  @global_options = config[:shell].base.options
  values = Values.new(@global_options)
  @core = Ej::Core.new(values)
  @indices = Ej::Indices.new(values)
  @cluster = Ej::Cluster.new(values)
  @nodes = Ej::Nodes.new(values)
end