lib/gooddata/models/project.rb
def transfer_etl(client, from_project, to_project)
        from_project = case from_project
                       when GoodData::Client
                         from_project.project
                       when GoodData::Segment
                         from_project.master_project
                       else
                         client.projects(from_project)
                       end

        to_project = case to_project
                     when GoodData::Client
                       to_project.project
                     when GoodData::Segment
                       to_project.master_project
                     else
                       client.projects(to_project)
                     end
        transfer_processes(from_project, to_project)
        transfer_schedules(from_project, to_project)
      end
# Clones project along with etl and schedules.
#
# @param client [GoodData::Rest::Client] GoodData client to be used for connection
# @param from_project [GoodData::Project | GoodData::Segment | GoodData:Client | String] Object to be cloned from. Can be either segment in which case we take the master, client in which case we take its project, string in which case we treat is as an project object or directly project
# @param to_project [GoodData::Project | GoodData::Segment | GoodData:Client | String]
Clones project along with etl and schedules.
Clones project along with etl and schedules .
def transfer_etl(client, from_project, to_project)
        from_project = case from_project
                       when GoodData::Client
                         from_project.project
                       when GoodData::Segment
                         from_project.master_project
                       else
                         client.projects(from_project)
                       end
        to_project = case to_project
                     when GoodData::Client
                       to_project.project
                     when GoodData::Segment
                       to_project.master_project
                     else
                       client.projects(to_project)
                     end
        transfer_processes(from_project, to_project)
        transfer_schedules(from_project, to_project)
      end
def transfer_etl ( client , from_project , to_project ) from_project = case from_project when GoodData :: Client from_project . project when GoodData :: Segment from_project . master_project else client . projects ( from_project ) end to_project = case to_project when GoodData :: Client to_project . project when GoodData :: Segment to_project . master_project else client . projects ( to_project ) end transfer_processes ( from_project , to_project ) transfer_schedules ( from_project , to_project ) end
Clones project along with etl and schedules.
Clones project along with etl and schedules .
client
GoodData client to be used for connection
GoodData client to be used for connection
from_project
Object to be cloned from. Can be either segment in which case we take the master, client in which case we take its project, string in which case we treat is as an project object or directly project
Object to be cloned from . Can be either segment in which case we take the master client in which case we take its project string in which case we treat is as an project object or directly project
to_project
None