lib/gooddata/lcm/lcm2.rb in gooddata-0.6.53 vs lib/gooddata/lcm/lcm2.rb in gooddata-0.6.54
- old
+ new
@@ -78,60 +78,90 @@
## Bricks
release: [
EnsureReleaseTable,
+ EnsureDataProduct,
+ CollectDataProduct,
SegmentsFilter,
CreateSegmentMasters,
EnsureTechnicalUsersDomain,
EnsureTechnicalUsersProject,
SynchronizeLdm,
- CollectAttributes,
+ CollectLdmObjects,
CollectMeta,
CollectTaggedObjects,
CollectComputedAttributeMetrics,
ImportObjectCollections,
SynchronizeComputedAttributes,
SynchronizeProcesses,
SynchronizeSchedules,
SynchronizeColorPalette,
+ SynchronizeUserGroups,
SynchronizeNewSegments,
UpdateReleaseTable
],
provision: [
EnsureReleaseTable,
+ CollectDataProduct,
CollectSegments,
+ CollectClientProjects,
PurgeClients,
CollectClients,
AssociateClients,
+ RenameExistingClientProjects,
ProvisionClients,
EnsureTechnicalUsersDomain,
EnsureTechnicalUsersProject,
+ CollectDymanicScheduleParams,
SynchronizeETLsInSegment
],
rollout: [
EnsureReleaseTable,
+ CollectDataProduct,
CollectSegments,
CollectSegmentClients,
EnsureTechnicalUsersDomain,
EnsureTechnicalUsersProject,
SynchronizeLdm,
ApplyCustomMaql,
SynchronizeClients,
SynchronizeComputedAttributes,
+ CollectDymanicScheduleParams,
SynchronizeETLsInSegment
+ ],
+
+ users: [
+ CollectDataProduct,
+ CollectSegments,
+ SynchronizeUsers
+ ],
+
+ user_filters: [
+ CollectDataProduct,
+ SynchronizeUserFilters
+ ],
+
+ schedules_execution: [
+ ExecuteSchedules
]
}
MODE_NAMES = MODES.keys
class << self
def convert_params(params)
# Symbolize all keys
GoodData::Helpers.symbolize_keys!(params)
+ params.keys.each do |k|
+ params[k.downcase] = params[k]
+ end
+ params.reject! do |k, _|
+ k.downcase != k
+ end
convert_to_smart_hash(params)
end
def convert_to_smart_hash(params)
if params.is_a?(Hash)
@@ -276,9 +306,11 @@
actions.each do |action|
puts
# Invoke action
begin
+ GoodData.logger.info("Running #{action.name} action ...")
+
# Check if all required parameters were passed
BaseAction.check_params(action.const_get('PARAMS'), params)
out = action.send(:call, params)
rescue => e