Sha256: acba8df2ed15bdef74b91ea6dcd9050dbb513aa7d3a03c4168759a07280f8c1a

Contents?: true

Size: 844 Bytes

Versions: 3

Compression:

Stored size: 844 Bytes

Contents

# encoding: utf-8

module GithubCLI
  class Commands::Blobs < Command

    namespace :blob

    desc 'get <user> <repo> <sha>', 'Get a Blob'
    method_option :params, :type => :hash, :default => {},
                  :desc => 'Additonal request parameters e.i per_page:100'
    def get(user, repo, sha)
      Blob.get user, repo, sha, options[:params], options[:format]
    end

    desc 'create <user> <repo>', 'Create a new Blob'
    long_desc <<-DESC
      Inputs

        content - String of content \n
        encoding - String containing encoding utf-8 or base64
    DESC
    method_option :params, :type => :hash, :default => {},
                  :desc => 'Additonal request parameters e.i per_page:100'
    def create(user, repo)
      Blob.create user, repo, options[:params], options[:format]
    end

  end # Blobs
end # GithubCLI

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
github_cli-0.4.0 lib/github_cli/commands/blobs.rb
github_cli-0.3.1 lib/github_cli/commands/blobs.rb
github_cli-0.3.0 lib/github_cli/commands/blobs.rb