Class: RogIQ::Remote::Sync

Inherits:
CommandBase show all
Defined in:
lib/rogiq/remote/sync.rb

Instance Method Summary collapse

Instance Method Details

#integrations(identifier) ⇒ Object



20
21
22
23
24
25
26
# File 'lib/rogiq/remote/sync.rb', line 20

def integrations(identifier)
  unless options[:yes]
    exit 1 unless yes?("Enqueue integration sync for #{identifier}?")
  end

  emit(api.post("/api/v1/cli/sync/integrations", { identifier: identifier, confirm: true }))
end

#postmanObject



30
31
32
33
34
35
36
# File 'lib/rogiq/remote/sync.rb', line 30

def postman
  unless options[:yes]
    exit 1 unless yes?("Run postman:sync on the server?")
  end

  emit(api.post("/api/v1/cli/sync/postman", { confirm: true }))
end

#stripeObject



40
41
42
43
44
45
46
# File 'lib/rogiq/remote/sync.rb', line 40

def stripe
  unless options[:yes]
    exit 1 unless yes?("Run stripe:ensure_subscription_prices on the server?")
  end

  emit(api.post("/api/v1/cli/sync/stripe", { confirm: true }))
end

#wordpress(identifier) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/rogiq/remote/sync.rb', line 10

def wordpress(identifier)
  unless options[:yes]
    exit 1 unless yes?("Enqueue WordPress sync for #{identifier}?")
  end

  emit(api.post("/api/v1/cli/sync/wordpress", { identifier: identifier, confirm: true }))
end