Method: GoodData::Command::Project.create

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

.create(options = { client: GoodData.connection }) ⇒ Object

Create new project based on options supplied



17
18
19
20
21
22
23
24
25
# File 'lib/gooddata/commands/project.rb', line 17

def create(options = { client: GoodData.connection })
  title = options[:title]
  summary = options[:summary]
  template = options[:template]
  token = options[:token]
  client = options[:client]
  driver = options[:driver] || 'Pg'
  GoodData::Project.create(:title => title, :summary => summary, :template => template, :auth_token => token, :client => client, :driver => driver)
end