Sha256: f327493b87e5728b10585308c816240923ff8c2fbe970eaaf64e3f74a8f860f7
Contents?: true
Size: 804 Bytes
Versions: 3
Compression:
Stored size: 804 Bytes
Contents
desc 'Setup your GitHub account' command :setup do |c| c.desc 'sets up your api token with GitHub' c.switch [:l, :local], default_value: false, desc: 'setup GitReflow for the current project only' c.switch [:e, :enterprise], default_value: false, desc: 'setup GitReflow with a Github Enterprise account' c.action do |global_options, options, args| reflow_options = { project_only: options[:local], enterprise: options[:enterprise] } choose do |menu| menu.header = "Available remote Git Server services:" menu.prompt = "Which service would you like to use for this project? " menu.choice('GitHub') { GitReflow::GitServer.connect reflow_options.merge({ provider: 'GitHub', silent: false }) } menu.choice('BitBucket') { say("Coming soon...") } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
git_reflow-0.4.2 | lib/git_reflow/commands/setup.rb |
git_reflow-0.4.1 | lib/git_reflow/commands/setup.rb |
git_reflow-0.4.0 | lib/git_reflow/commands/setup.rb |