     end
   end
 
-  def print_buckets(target) when is_atom(target) do
-    buckets = get_buckets!(target, config :type )
-    Enum.each(buckets, fn(b) -> Logger.info "Bucket: #{b}" end)
-  end
-
-  def configure_logger do
+  defp configure_logger do
     timestamp = Date.now |> DateFormat.format!("%Y%m%d-%H%M%S", :strftime)
     Logger.add_backend {LoggerFileBackend, :file}
   	Logger.configure_backend {LoggerFileBackend, :file},

            Logger.debug("Command #{command} starting")
            migrate_type
        end
      "list_src_buckets" ->
        case config(:type) do
          nil ->
            IO.puts "--type required for #{command}"
            print_help()
          _ ->
            start_riak(:src, String.to_atom(config :src_ip), config :src_port)
            print_buckets(:src)
        end
      "list_sink_buckets" ->
        case config(:type) do
          nil ->
            IO.puts "--type required for #{command}"
            print_help()
          _ ->
            start_riak(:sink, String.to_atom(config :sink_ip), config :sink_port)
            print_buckets(:sink)
        end
      "help" ->
        print_help()
      unknown ->

    end
  end

  defp needs_update(src, sink) do
    cond do
      is_nil(src) and is_nil(sink) ->
        false
