Sha256: c8e59b92b8c21d8c69e49d86c1f78a5dd38dc5c6383fd99a0e417def8c618f7f
Contents?: true
Size: 739 Bytes
Versions: 1
Compression:
Stored size: 739 Bytes
Contents
require 'clamp' require 'tempfile' require 'shellwords' require 'rugged' module Gisha class ReceiveCommand < Clamp::Command parameter 'KEY_ID', 'id to identify the key' def execute Commands::Receive.new(key_id).exec end end class DeployCommand < Clamp::Command parameter 'URL', 'url to deploy' parameter 'KEY_ID', 'id to identify the key' parameter 'PATH', 'repository path' parameter 'REVISION', 'repository path' def execute Commands::Deploy.new(url, key_id, path, revision).exec end end class CLI < Clamp::Command subcommand 'receive', 'receive what is pushed into the repository', ReceiveCommand subcommand 'deploy', 'deploy to spass', DeployCommand end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gisha-0.1.0 | lib/gisha/cli.rb |