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.8.3 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.8.2 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.8.1 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.8.0 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.7.38 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.7.37 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.7.36 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.7.34 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.7.33 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.7.32 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.7.31 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.7.30 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.7.29 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.7.28 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.7.27 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.7.26 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.7.25 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.7.24 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.7.21 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.7.20 lib/souls/cli/gcloud/pubsub/topics.rb