Sha256: b0ac7f8c07bfc10ee747bd1ce3fda9d973983c279dead70c7301fb9903163335
Contents?: true
Size: 616 Bytes
Versions: 207
Compression:
Stored size: 616 Bytes
Contents
module Souls class Pubsub < Thor desc "create_topic", "Create Google Cloud Pubsub Topic" method_option :topic_name, default: "send-user-mailer", aliases: "--topic_name", desc: "Google Cloud Pubsub Topic Name" def create_topic system("gcloud pubsub topics create #{options[:topic_name]}") rescue Thor::Error => e raise(Thor::Error, e) end desc "topic_list", "Show Google Cloud Topic List" def topic_list system("gcloud pubsub topics list") rescue Thor::Error => e raise(Thor::Error, e) end end end
Version data entries
207 entries across 207 versions & 1 rubygems