class DTK::Client::Operation::Service::CreateWorkspace
Public Class Methods
execute(args = Args.new)
click to toggle source
# File lib/client/operation/service/create_workspace.rb, line 21 def self.execute(args = Args.new) wrap_operation(args) do |args| post_body = PostBody.new( :workspace_name? => args[:workspace_name], :target_service? => args[:target_service] ) response = rest_post("#{BaseRoute}/create_workspace", post_body) workspace_name = response.required(:workspace, :name) ClientModuleDir.create_service_dir(workspace_name) response end end