Class: Hoss::Main

Inherits:
Mjolnir show all
Defined in:
lib/hoss/main.rb

Constant Summary

Constants inherited from Mjolnir

Mjolnir::COMMON_OPTIONS

Instance Method Summary collapse

Methods inherited from Mjolnir

include_common_options

Instance Method Details

#artObject



22
23
24
# File 'lib/hoss/main.rb', line 22

def art
  puts "\n%s\n" % ART
end

#reindexObject



48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# File 'lib/hoss/main.rb', line 48

def reindex
  ridley = Ridley.from_chef_config options.knife

  elasticsearch = Elasticsearch::Client.new \
    host: options.elasticsearch_host,
    reload_connections: true,
    reload_on_failure: true,
    trace: options.trace?,
    log: options.trace? ? log : nil

  Reindex.new options.merge \
    ridley: ridley,
    elasticsearch: elasticsearch,
    logger: log
end

#versionObject



16
17
18
# File 'lib/hoss/main.rb', line 16

def version
  puts VERSION
end