Sha256: a28adbfa063bde8b8d4ab9fdd97516eae64a051d765b58fad0b255d327564910

Contents?: true

Size: 473 Bytes

Versions: 6

Compression:

Stored size: 473 Bytes

Contents

module SlackRubyBotServer
  class App
    include SlackRubyBotServer::Loggable

    def prepare!
      check_database!
      init_database!
      purge_inactive_teams!
    end

    def self.instance
      @instance ||= new
    end

    private

    def check_database!
      SlackRubyBotServer::DatabaseAdapter.check!
    end

    def init_database!
      SlackRubyBotServer::DatabaseAdapter.init!
    end

    def purge_inactive_teams!
      Team.purge!
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
slack-ruby-bot-server-2.1.1 lib/slack-ruby-bot-server/app.rb
slack-ruby-bot-server-2.1.0 lib/slack-ruby-bot-server/app.rb
slack-ruby-bot-server-2.0.1 lib/slack-ruby-bot-server/app.rb
slack-ruby-bot-server-1.2.1 lib/slack-ruby-bot-server/app.rb
slack-ruby-bot-server-1.2.0 lib/slack-ruby-bot-server/app.rb
slack-ruby-bot-server-1.1.0 lib/slack-ruby-bot-server/app.rb