Sha256: f5f8e00bcd9dd3b82e7eeec981dfc1a2cd5cb4e878dfee518b9e65a5c5368ec9

Contents?: true

Size: 1.68 KB

Versions: 8

Compression:

Stored size: 1.68 KB

Contents

module Stagecoach
  class CommandLine
    def self.line_break
      puts  "\n"
    end

    def self.trollop
      require 'trollop'
      # Command line options using Trollop.
      Trollop::options do
        version "Stagecoach %s" % VERSION
        banner <<-EOS
Usage
-----
Init stage:
  stagecoach -r[edmine] 4115 (or -g[ithub] 525) -b[ranch] my_new_branch -f[rom] branch_to_branch_out_from

Push:
  stagecoach -p

Deploy:
  stagecoach -d staging

For more info see the readme at https://github.com/omnikron/stagecoach#readme


#{"Flags".red}
        EOS
        opt :branch, "Enter your new branch name here, eg. stagecoach -b new_branch (optional)", :type => :string
        opt :deploy, "Use this option to  deploy from your current branch to any branch you choose, eg. stagecoach -d staging", :type => :string, :default => "staging" 
        opt :from, "Use this option to set the branch you want to branch off from.  Default is master", :type => :string, :default => "master"
        opt :github, "Enter your github issue number here, eg. stagecoach -g 1234 (optional)", :type => :string
        opt :list, "Use this to list local branches which you have created with Stagecoach"
        opt :push, "Use this option to push your changes to your remote branch (will be created if necessary)"
        opt :redmine, "Enter your redmine/planio issue number here, eg. stagecoach -r 1234 (optional)", :type  => :string
        opt :setup, "Use this the first time you run stagecoach to save your redmine repository and api key"
        opt :tidy, "This will remove all branches that are already merged to master, both remotely and locally."
        opt :version, "Prints the current version"
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
redmine_stagecoach-0.7.8 lib/stagecoach/command_line.rb
redmine_stagecoach-0.7.6 lib/stagecoach/command_line.rb
redmine_stagecoach-0.7.5 lib/stagecoach/command_line.rb
redmine_stagecoach-0.7.3 lib/stagecoach/command_line.rb
redmine_stagecoach-0.7.2 lib/stagecoach/command_line.rb
redmine_stagecoach-0.7.1 lib/stagecoach/command_line.rb
redmine_stagecoach-0.7.0 lib/stagecoach/command_line.rb
redmine_stagecoach-0.6.14 lib/stagecoach/command_line.rb