Class: ElasticGraph::Admin::RakeTasks

Inherits:
Rake::TaskLib
  • Object
show all
Defined in:
lib/elastic_graph/admin/rake_tasks.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(prototype_index_names: [], output: $stdout, &load_admin) ⇒ RakeTasks



20
21
22
23
24
25
26
# File 'lib/elastic_graph/admin/rake_tasks.rb', line 20

def initialize(prototype_index_names: [], output: $stdout, &load_admin)
  @output = output
  @prototype_index_names = prototype_index_names.to_set
  @load_admin = load_admin

  define_tasks
end

Instance Attribute Details

#outputObject (readonly)

Returns the value of attribute output.



18
19
20
# File 'lib/elastic_graph/admin/rake_tasks.rb', line 18

def output
  @output
end

#prototype_index_namesObject (readonly)

Returns the value of attribute prototype_index_names.



18
19
20
# File 'lib/elastic_graph/admin/rake_tasks.rb', line 18

def prototype_index_names
  @prototype_index_names
end