Class: Hoss::Main
Constant Summary
Constants inherited from Mjolnir
Instance Method Summary collapse
Methods inherited from Mjolnir
Instance Method Details
#art ⇒ Object
22 23 24 |
# File 'lib/hoss/main.rb', line 22 def art puts "\n%s\n" % ART end |
#reindex ⇒ Object
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 .knife elasticsearch = Elasticsearch::Client.new \ host: .elasticsearch_host, reload_connections: true, reload_on_failure: true, trace: .trace?, log: .trace? ? log : nil Reindex.new .merge \ ridley: ridley, elasticsearch: elasticsearch, logger: log end |
#version ⇒ Object
16 17 18 |
# File 'lib/hoss/main.rb', line 16 def version puts VERSION end |