Sha256: 1d9cbab0d7662383cd883c5d6419801700fc7ce227b3d633471ca343b51dc0bf
Contents?: true
Size: 663 Bytes
Versions: 2
Compression:
Stored size: 663 Bytes
Contents
module GitBundle class CLI include GitBundle::Console def initialize @errors = [] @project = GitBundle::Project.new end def invoke(args) case args[0] when nil, '--help', 'help' puts `git #{args.join(' ')}`.gsub('git', 'gitb') when 'push' GitBundle::Commands::Push.new(@project, args[1..-1]).invoke when '--version' GitBundle::Commands::Version.new.invoke else GitBundle::Commands::Generic.new(@project, args).invoke end rescue Bundler::GemfileNotFound => e puts_error("Could not find Gemfile in the current directory") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
git-bundle-1.0.10 | lib/git_bundle/cli.rb |
git-bundle-1.0.9 | lib/git_bundle/cli.rb |