Class: RogIQ::Remote::Sync
- Inherits:
-
CommandBase
- Object
- Thor
- CommandBase
- RogIQ::Remote::Sync
- Defined in:
- lib/rogiq/remote/sync.rb
Instance Method Summary collapse
- #integrations(identifier) ⇒ Object
- #postman ⇒ Object
- #stripe ⇒ Object
- #wordpress(identifier) ⇒ Object
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 [:yes] exit 1 unless yes?("Enqueue integration sync for #{identifier}?") end emit(api.post("/api/v1/cli/sync/integrations", { identifier: identifier, confirm: true })) end |
#postman ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/rogiq/remote/sync.rb', line 30 def postman unless [:yes] exit 1 unless yes?("Run postman:sync on the server?") end emit(api.post("/api/v1/cli/sync/postman", { confirm: true })) end |
#stripe ⇒ Object
40 41 42 43 44 45 46 |
# File 'lib/rogiq/remote/sync.rb', line 40 def stripe unless [: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 [:yes] exit 1 unless yes?("Enqueue WordPress sync for #{identifier}?") end emit(api.post("/api/v1/cli/sync/wordpress", { identifier: identifier, confirm: true })) end |