Sha256: f8a9a58c829cf16d504acc74bf1ed270c4ebd79aca096246ebefa71b77c17a7b
Contents?: true
Size: 719 Bytes
Versions: 1
Compression:
Stored size: 719 Bytes
Contents
require 'clamp' module Gisha class AuthCommand < Clamp::Command parameter 'USER', 'username that was provided to the server' parameter 'KEY', 'public key that was provided to the server' def execute puts "authenticate #{user} with #{key}" end end class ReceiveCommand < Clamp::Command parameter 'PATH', 'path of the repo that was pushed to' parameter 'COMMIT', 'SHA of the commit that was pushed to master' def execute puts "received #{commit} for repository #{path}" end end class CLI < Clamp::Command subcommand 'auth', 'Authenticate user', AuthCommand subcommand 'receive', 'Receive what is pushed into the repository', ReceiveCommand end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gisha-0.0.2 | lib/gisha/cli.rb |