Sha256: 799a3d945d702e1194067a593ef7bb3c87f0f8ca287a42d4d04b3b946e7a1033

Contents?: true

Size: 464 Bytes

Versions: 4

Compression:

Stored size: 464 Bytes

Contents

module SOULs
  class Pubsub < Thor
    desc "create_topic", "Create Google Cloud Pubsub Topic"
    def create_topic(topic_name)
      project = SOULs.configuration.project_id
      system("gcloud pubsub topics create #{topic_name} --project=#{project}")
    end

    desc "topic_list", "Show Google Cloud Topic List"
    def topic_list
      project = SOULs.configuration.project_id
      system("gcloud pubsub topics list --project=#{project}")
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
souls-4.1.2 lib/souls/cli/gcloud/pubsub/topics.rb
souls-4.1.1 lib/souls/cli/gcloud/pubsub/topics.rb
souls-4.1.0 lib/souls/cli/gcloud/pubsub/topics.rb
souls-4.0.3 lib/souls/cli/gcloud/pubsub/topics.rb