Sha256: fd6940e0505ef390c045592830dce54217b9e13c07c9adfa330a356bcf27c766

Contents?: true

Size: 662 Bytes

Versions: 1

Compression:

Stored size: 662 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]
    end

    desc 'create <user> <repo>', 'Create a new Blob'
    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]
    end

  end # Blobs
end # GithubCLI

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
github_cli-0.1.3 lib/github_cli/commands/blobs.rb