Sha256: 8eb04b4c0b585eb82398d48ad7922eb444feac7d9482000cd896a81d7d99bcdd

Contents?: true

Size: 1.01 KB

Versions: 16

Compression:

Stored size: 1.01 KB

Contents

# encoding: utf-8

module GithubCLI
  class Hook < API

    class << self

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

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

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

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

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

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

  end # Hook
end # GithubCLI

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
github_cli-0.5.8 lib/github_cli/apis/hook.rb
github_cli-0.5.7 lib/github_cli/apis/hook.rb
github_cli-0.5.6 lib/github_cli/apis/hook.rb
github_cli-0.5.5 lib/github_cli/apis/hook.rb
github_cli-0.5.4 lib/github_cli/apis/hook.rb
github_cli-0.5.3 lib/github_cli/apis/hook.rb
github_cli-0.5.2 lib/github_cli/apis/hook.rb
github_cli-0.5.1 lib/github_cli/apis/hook.rb
github_cli-0.5.0 lib/github_cli/apis/hook.rb
github_cli-0.4.4 lib/github_cli/apis/hook.rb
github_cli-0.4.3 lib/github_cli/apis/hook.rb
github_cli-0.4.2 lib/github_cli/apis/hook.rb
github_cli-0.4.1 lib/github_cli/apis/hook.rb
github_cli-0.4.0 lib/github_cli/apis/hook.rb
github_cli-0.3.1 lib/github_cli/apis/hook.rb
github_cli-0.3.0 lib/github_cli/apis/hook.rb