Module: GitIssue
- Defined in:
- lib/git_issue.rb,
lib/git_issue/github.rb,
lib/git_issue/redmine.rb,
lib/git_issue/version.rb
Defined Under Namespace
Modules: Helper Classes: Base, Command, Github, Redmine
Constant Summary collapse
- VERSION =
"0.8.7"
Class Method Summary collapse
Class Method Details
.main(argv) ⇒ Object
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 |
# File 'lib/git_issue.rb', line 136 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' end end Helper.configure_error('type (redmine | github)', "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 |