Class: Changelog::Notifier::Adapters::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/changelog/notifier/adapters/base.rb

Direct Known Subclasses

ActiveRecord, Slack

Instance Method Summary collapse

Constructor Details

#initialize(capistrano) ⇒ Base

Returns a new instance of Base.



7
8
9
10
11
12
13
14
15
16
# File 'lib/changelog/notifier/adapters/base.rb', line 7

def initialize(capistrano)
  @capistrano = capistrano

  unless @capistrano
    raise ArgumentError, 'No Capistrano instance passed while it is ' \
                         'required.'
  end

  fetches_adapter_configuration
end

Instance Method Details

#configured?Boolean

Returns:

  • (Boolean)

Raises:



18
19
20
# File 'lib/changelog/notifier/adapters/base.rb', line 18

def configured?
  raise NotImplementedError
end

#publish!(release_note_hash, version) ⇒ Object



22
23
24
# File 'lib/changelog/notifier/adapters/base.rb', line 22

def publish!(release_note_hash, version)
  raise NotImplementedError
end