Class: Dripl::CLI

Inherits:
Object
  • Object
show all
Includes:
Mixlib::CLI
Defined in:
lib/dripl/cli.rb

Instance Method Summary collapse

Instance Method Details

#runObject



27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/dripl/cli.rb', line 27

def run
  if zookeeper = config[:zookeeper]
    client = Druid::Client.new(zookeeper)
  end

  unless client
    puts "Couldn't create Druid client"
    exit 1
  end

  Prompt.new(client, config[:source]).start
end