lib/gooddata/lcm/actions/collect_meta.rb in gooddata-0.6.53 vs lib/gooddata/lcm/actions/collect_meta.rb in gooddata-0.6.54

- old
+ new

@@ -11,13 +11,16 @@ class CollectMeta < BaseAction DESCRIPTION = "Collect tagged dashboards (or all dashboards if not specify production tag) \ with objects inside dashboards (reports, metrics ...) from development projects" PARAMS = define_params(self) do - description 'Production Tag Name' - param :production_tag, instance_of(Type::StringType), required: false + description 'Production Tag Names' + param :production_tags, array_of(instance_of(Type::StringType)), required: false + description 'Production Tag Names' + param :production_tag, instance_of(Type::StringType), required: false, deprecated: true, replacement: :production_tags + description 'Development Client Used for Connecting to GD' param :development_client, instance_of(Type::GdClientType), required: true description 'Synchronization Info' param :synchronize, array_of(instance_of(Type::SynchronizationInfoType)), required: true, generated: true @@ -40,10 +43,10 @@ synchronize = params.synchronize.pmap do |info| from = info.from from_project = development_client.projects(from) || fail("Invalid 'from' project specified - '#{from}'") segment_tags = segments_to_tags[info.segment] - production_tags = Helpers.parse_production_tags(params.production_tag, segment_tags) + production_tags = Helpers.parse_production_tags(params.production_tags || params.production_tag, segment_tags) if transfer_all || production_tags.empty? old_dashboards = GoodData::Dashboard.all( project: from_project, client: development_client