Class: Pubilion::CLI::Subscription

Inherits:
Thor
  • Object
show all
Defined in:
lib/pubilion/cli/subscription.rb

Instance Method Summary collapse

Instance Method Details

#create(subscription_name) ⇒ Object



10
11
12
13
14
# File 'lib/pubilion/cli/subscription.rb', line 10

def create(subscription_name)
  topic = client.find_topic(options[:topic])
  subscription = topic.subscribe(subscription_name)
  puts "Subscription #{subscription.name} created."
end