Sha256: bb3cf05b2533feea649fd98fd20f2a0fc4e7eabc3749bf369c897dcd1749b7d5

Contents?: true

Size: 1.23 KB

Versions: 1

Compression:

Stored size: 1.23 KB

Contents

# encoding: utf-8

module GithubCLI
  class Hook < API

    class << self

      def all(user, repo, params, options)
        output options[:format], options[:quiet] do
          github_api(options).repos.hooks.list user, repo, params
        end
      end

      def get(user, repo, id, params, options)
        output options[:format], options[:quiet] do
          github_api(options).repos.hooks.get user, repo, id, params
        end
      end

      def create(user, repo, params, options)
        output options[:format], options[:quiet] do
          github_api(options).repos.hooks.create user, repo, params
        end
      end

      def edit(user, repo, id, params, options)
        output options[:format], options[:quiet] do
          github_api(options).repos.hooks.edit user, repo, id, params
        end
      end

      def test(user, repo, id, params, options)
        output options[:format], options[:quiet] do
          github_api(options).repos.hooks.test user, repo, id, params
        end
      end

      def delete(user, repo, id, params, options)
        output options[:format], options[:quiet] do
          github_api(options).repos.hooks.delete user, repo, id, params
        end
      end
    end

  end # Hook
end # GithubCLI

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
github_cli-0.5.9 lib/github_cli/apis/hook.rb