Sha256: eb21443fb8e8ef09d8866e6562ea1c3b68bb9a4c2c4888d2fe75474c882943bf

Contents?: true

Size: 802 Bytes

Versions: 4

Compression:

Stored size: 802 Bytes

Contents

# -*- coding: UTF-8 -*-
#
# Copyright 2014 PagerDuty, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

module LitaGithub
  # Github handler common-use Repository methods
  module Repo
    def rpo(org, repo)
      "#{org}/#{repo}"
    end

    def repo?(r)
      octo.repository?(r)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lita-github-0.0.5 lib/lita-github/repo.rb
lita-github-0.0.4 lib/lita-github/repo.rb
lita-github-0.0.3 lib/lita-github/repo.rb
lita-github-0.0.2 lib/lita-github/repo.rb