Sha256: c2ecb74432a37fa8d5c901c360b0821da5ac3f869a8994744770ffa7beeefdec

Contents?: true

Size: 1.08 KB

Versions: 3

Compression:

Stored size: 1.08 KB

Contents

# encoding: utf-8

module GithubCLI
  class Hook < API

    class << self

      def all(user, repo, params, options)
        output options do
          github_api(options).repos.hooks.list user, repo, params
        end
      end

      def get(user, repo, id, params, options)
        output options do
          github_api(options).repos.hooks.get user, repo, id, params
        end
      end

      def create(user, repo, params, options)
        output options do
          github_api(options).repos.hooks.create user, repo, params
        end
      end

      def edit(user, repo, id, params, options)
        output options do
          github_api(options).repos.hooks.edit user, repo, id, params
        end
      end

      def test(user, repo, id, params, options)
        output options do
          github_api(options).repos.hooks.test user, repo, id, params
        end
      end

      def delete(user, repo, id, params, options)
        output options do
          github_api(options).repos.hooks.delete user, repo, id, params
        end
      end
    end

  end # Hook
end # GithubCLI

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
github_cli-0.6.2 lib/github_cli/apis/hook.rb
github_cli-0.6.1 lib/github_cli/apis/hook.rb
github_cli-0.6.0 lib/github_cli/apis/hook.rb