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

Version Path
souls-1.6.15 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.6.14 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.6.13 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.6.12 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.6.11 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.6.10 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.6.9 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.6.8 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.6.7 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.6.6 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.6.5 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.6.4 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.6.3 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.6.2 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.6.1 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.6.0 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.5.7 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.5.6 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.5.5 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.5.4 lib/souls/cli/gcloud/pubsub/topics.rb