Sha256: 053abe6856e05676fe9ba4835a028e78adb3b8ae46ac86f9e2686a7f111aaeac

Contents?: true

Size: 762 Bytes

Versions: 19

Compression:

Stored size: 762 Bytes

Contents

desc 'deliver your feature branch'
long_desc 'merge your feature branch down to your base branch, and cleanup your feature branch'

command :deliver do |c|
  c.desc 'skip the lgtm checks and deliver your feature branch'
  c.switch [:f, :'skip-lgtm']
  c.desc 'merge your feature branch down to your base branch, and cleanup your feature branch'
  c.arg_name 'base_branch - the branch you want to merge into'
  c.action do |global_options,options,args|
    deliver_options = {'base' => nil, 'head' => nil, 'skip_lgtm' => options[:'skip-lgtm']}
    case args.length
    when 2
      deliver_options['base'] = args[0]
      deliver_options['head'] = args[1]
    when 1
      deliver_options['base'] = args[0]
    end
    GitReflow.deliver deliver_options
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
git_reflow-0.6.7 lib/git_reflow/commands/deliver.rb
git_reflow-0.6.6 lib/git_reflow/commands/deliver.rb
git_reflow-0.6.5 lib/git_reflow/commands/deliver.rb
git_reflow-0.6.4 lib/git_reflow/commands/deliver.rb
git_reflow-0.6.3 lib/git_reflow/commands/deliver.rb
git_reflow-0.6.2 lib/git_reflow/commands/deliver.rb
git_reflow-0.6.1 lib/git_reflow/commands/deliver.rb
git_reflow-0.6.0 lib/git_reflow/commands/deliver.rb
git_reflow-0.5.3 lib/git_reflow/commands/deliver.rb
git_reflow-0.5.2 lib/git_reflow/commands/deliver.rb
git_reflow-0.5.1 lib/git_reflow/commands/deliver.rb
git_reflow-0.5.0 lib/git_reflow/commands/deliver.rb
git_reflow-0.4.2 lib/git_reflow/commands/deliver.rb
git_reflow-0.4.1 lib/git_reflow/commands/deliver.rb
git_reflow-0.4.0 lib/git_reflow/commands/deliver.rb
fb-git_reflow-0.3.6 lib/git_reflow/commands/deliver.rb
git_reflow-0.3.5 lib/git_reflow/commands/deliver.rb
git_reflow-0.3.4 lib/git_reflow/commands/deliver.rb
git_reflow-0.3.3 lib/git_reflow/commands/deliver.rb