From ccbb0e5c975c33591a29e0c732e6bd8232676d78 Mon Sep 17 00:00:00 2001 From: Karel Minarik Date: Thu, 5 Dec 2013 17:36:16 +0100 Subject: [PATCH] [UTIL] Fixed an error for the `--output` parameter in `thor api:spec:generate` --- rest-api-spec/utils/thor/generate_api.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest-api-spec/utils/thor/generate_api.rb b/rest-api-spec/utils/thor/generate_api.rb index 121b240e691..8755bef7b83 100644 --- a/rest-api-spec/utils/thor/generate_api.rb +++ b/rest-api-spec/utils/thor/generate_api.rb @@ -120,7 +120,7 @@ module Elasticsearch def generate self.class.source_root File.expand_path('../', __FILE__) - @output = options[:output] + @output = Pathname(options[:output]) rest_actions = Utils.__parse_java_source(options[:elasticsearch].to_s)