Sha256: e2656ba0ac192a9c54cc27516181326819ef106f5cdb08009ee39ebfe9ddcf07

Contents?: true

Size: 1.46 KB

Versions: 7

Compression:

Stored size: 1.46 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 
        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 :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 :version, "Prints the current version"
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
redmine_stagecoach-0.6.12 lib/stagecoach/command_line.rb
redmine_stagecoach-0.6.10 lib/stagecoach/command_line.rb
redmine_stagecoach-0.6.9 lib/stagecoach/command_line.rb
redmine_stagecoach-0.6.8 lib/stagecoach/command_line.rb
redmine_stagecoach-0.6.7 lib/stagecoach/command_line.rb
redmine_stagecoach-0.6.6 lib/stagecoach/command_line.rb
redmine_stagecoach-0.6.5 lib/stagecoach/command_line.rb