Sha256: d8c2153c835b0e79fac939a9617c060f3ab99c37cc791bee8a9b382372642722

Contents?: true

Size: 802 Bytes

Versions: 1

Compression:

Stored size: 802 Bytes

Contents

# encoding: utf-8

module GithubCLI
  class Content < API

    class << self

      def get(user, repo, path, params, options)
        output options do
          github_api(options).repos.contents.get user, repo, path, params
        end
      end

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

      def readme(user, repo, params, options)
        output options do
          github_api(options).repos.contents.readme user, repo, params
        end
      end

      def archive(user, repo, params, options)
        output options do
          github_api(options).repos.contents.archive user, repo, params
        end
      end
    end

  end # Content
end # GithubCLI

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
github_cli-0.6.2 lib/github_cli/apis/content.rb