Sha256: eadec7cd70f3380061352c815b56b6713992117dbfff0a5b65cd9810abfa2cdb

Contents?: true

Size: 504 Bytes

Versions: 80

Compression:

Stored size: 504 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]}")
    end

    desc "topic_list", "Show Google Cloud Topic List"
    def topic_list
      system("gcloud pubsub topics list")
    end
  end
end

Version data entries

80 entries across 80 versions & 1 rubygems

Version Path
souls-1.17.3 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.17.2 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.17.1 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.17.0 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.16.4 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.16.3 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.16.2 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.16.1 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.16.0 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.15.5 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.15.4 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.15.3 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.15.2 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.15.1 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.15.0 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.14.3 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.14.2 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.14.1 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.14.0 lib/souls/cli/gcloud/pubsub/topics.rb
souls-1.13.8 lib/souls/cli/gcloud/pubsub/topics.rb