Sha256: 4d07dcf2d2d5d01b24fe1338cb8d53f377aa455f8ca3ddb6cee237e36d7836d1

Contents?: true

Size: 721 Bytes

Versions: 19

Compression:

Stored size: 721 Bytes

Contents

module Paratrooper

  # Public: Shell object with methods to be overridden by other notifiers
  #
  # All notifiers should inherit from this class
  #
  class Notifier
    def notify(step_name, options = {})
      self.send(step_name, options)
    end

    #
    # To create your own notifier override the following methods.
    #

    def setup(options = {}); end
    def activate_maintenance_mode(options = {}); end
    def deactivate_maintenance_mode(options = {}); end
    def update_repo_tag(options = {}); end
    def push_repo(options = {}); end
    def run_migrations(options = {}); end
    def app_restart(options = {}); end
    def warm_instance(options = {}); end
    def teardown(options = {}); end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
paratrooper-3.0.2 lib/paratrooper/notifier.rb
paratrooper-3.0.0.beta3 lib/paratrooper/notifier.rb
paratrooper-3.0.0.beta2 lib/paratrooper/notifier.rb
paratrooper-3.0.0.beta1 lib/paratrooper/notifier.rb
paratrooper-2.4.1 lib/paratrooper/notifier.rb
paratrooper-2.4.0 lib/paratrooper/notifier.rb
paratrooper-2.3.0 lib/paratrooper/notifier.rb
paratrooper-2.2.0 lib/paratrooper/notifier.rb
paratrooper-2.1.0 lib/paratrooper/notifier.rb
paratrooper-2.0.0 lib/paratrooper/notifier.rb
paratrooper-2.0.0.beta2 lib/paratrooper/notifier.rb
paratrooper-2.0.0.beta1 lib/paratrooper/notifier.rb
paratrooper-1.4.2 lib/paratrooper/notifier.rb
paratrooper-1.4.1 lib/paratrooper/notifier.rb
paratrooper-1.4.0 lib/paratrooper/notifier.rb
paratrooper-1.3.2 lib/paratrooper/notifier.rb
paratrooper-1.3.1 lib/paratrooper/notifier.rb
paratrooper-1.2.2 lib/paratrooper/notifier.rb
paratrooper-1.2.1 lib/paratrooper/notifier.rb