Module: GitIssue
- Defined in:
- lib/git_issue.rb,
lib/git_issue/github.rb,
lib/git_issue/redmine.rb,
lib/git_issue/version.rb,
lib/git_issue/bitbucket.rb
Defined Under Namespace
Modules: Helper Classes: Base, Bitbucket, Command, Github, Redmine
Constant Summary collapse
- VERSION =
"0.9.2"
Class Method Summary collapse
Class Method Details
.main(argv) ⇒ Object
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 |
# File 'lib/git_issue.rb', line 145 def self.main(argv) status = true begin its_type = Helper.configured_value('issue.type') # Use global config for hub if its_type.blank? github_user = Helper.global_configured_value('github.user') unless github_user.blank? its_type = 'github' else bitbucket_user = Helper.global_configured_value('bitbucket.user') unless bitbucket_user.blank? its_type = 'bitbucket' end end end Helper.configure_error('type (redmine | github | bitbucket)', "git config issue.type redmine") if its_type.blank? its_klass = Helper.its_klass_of(its_type) status = its_klass.new(ARGV).execute || true rescue => e puts e puts e.backtrace.join("\n") status = false end exit(status) end |