Method: PortalModule::Rake::DtsTasks#commit

Defined in:
lib/portal_module/rake/dts_tasks.rb

#commitObject



62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# File 'lib/portal_module/rake/dts_tasks.rb', line 62

def commit
  validate_params

  client = PortalModule::Client.new
  client.env = env

  if self.respond_to? action
    self.send(action, client)
    return
  else
    raise "Unknown action - #{action}"
  end

rescue Exception => e
  raise e if stop_on_exception == true
ensure
  client.quit unless client.nil?
end