Module: Towncrier::Targets::InstanceMethods

Defined in:
lib/towncrier/targets.rb

Instance Method Summary collapse

Instance Method Details

#set_towncrier_tokenObject



14
15
16
17
18
19
20
# File 'lib/towncrier/targets.rb', line 14

def set_towncrier_token
  unless towncrier_token.present?
    begin
      self.towncrier_token = SecureRandom.hex
    end while self.class.exists?(towncrier_token: towncrier_token)
  end
end

#towncrier_channelObject



22
23
24
# File 'lib/towncrier/targets.rb', line 22

def towncrier_channel
  "/towncrier-#{towncrier_token}"
end