Class: Cloudflare::Email::DeployWorkerTask

Inherits:
TaskBase
  • Object
show all
Defined in:
lib/cloudflare/email/deploy_worker_task.rb

Overview

‘bin/rails cloudflare:email:deploy_worker` — uploads the Worker script + both secrets via the Cloudflare API. No wrangler required.

Class Method Summary collapse

Methods inherited from TaskBase

#call, #initialize

Constructor Details

This class inherits a constructor from Cloudflare::Email::TaskBase

Class Method Details

.call(script_path: nil, ingress_url: nil, io: $stdout) ⇒ Object



9
10
11
# File 'lib/cloudflare/email/deploy_worker_task.rb', line 9

def self.call(script_path: nil, ingress_url: nil, io: $stdout)
  new(io: io, script_path: script_path, ingress_url: ingress_url).call
end