Method: GoodData::Command::Project.clone

Defined in:
lib/gooddata/commands/project.rb

.clone(project_id, options = { client: GoodData.connection }) ⇒ Object

Clone existing project

Parameters:

  • project_id (String | GoodData::Project)

    Project id or project instance to delete

  • options (Hash) (defaults to: { client: GoodData.connection })

    a customizable set of options

Options Hash (options):

  • :data (String)

    Clone including all the data (default true)

  • :users (String)

    Clone including all the users (default false)

  • :title (String)

    Name of the cloned project (default "Clone of old_project_title")

  • :exclude_schedules (Boolean)

    Specifies whether to include scheduled emails

  • :verbose (Boolean) — default: false

    Switch on verbose mode for detailed logging



49
50
51
52
53
54
# File 'lib/gooddata/commands/project.rb', line 49

def clone(project_id, options = { client: GoodData.connection })
  client = options[:client]
  client.with_project(project_id) do |project|
    project.clone(options)
  end
end