Omit option details from event_description of WebsiteAgent.

Akinori MUSHA 10 年 前
コミット
ba7dbceb7a
共有1 個のファイルを変更した5 個の追加1 個の削除を含む
  1. 5 1
      app/models/agents/website_agent.rb

+ 5 - 1
app/models/agents/website_agent.rb

@@ -78,7 +78,11 @@ module Agents
78 78
     MD
79 79
 
80 80
     event_description do
81
-      "Events will have the fields you specified.  Your options look like:\n\n    #{Utils.pretty_print interpolated['extract']}"
81
+      "Events will have the following fields:\n\n    %s" % [
82
+        Utils.pretty_print(Hash[options['extract'].keys.map { |key|
83
+          [key, "..."]
84
+        }])
85
+      ]
82 86
     end
83 87
 
84 88
     def working?