Class: Neurogami::GHIssues
- Inherits:
-
Object
- Object
- Neurogami::GHIssues
- Defined in:
- lib/ghissues/ghissues.rb
Class Method Summary collapse
-
.configure(*args) ⇒ Object
Maybe some prompts?.
- .create ⇒ Object
- .open(*args) ⇒ Object
Class Method Details
.configure(*args) ⇒ Object
Maybe some prompts?
13 14 15 16 17 18 19 20 |
# File 'lib/ghissues/ghissues.rb', line 13 def configure *args STDERR.puts( ":DEBUG #{__FILE__}:#{__LINE__}" ) if ENV['JAMES_SCA_JDEV_MACHINE'] # JGBDEBUG File.open('.ghissues', 'w') { |f| f.puts "owner: RepoOwnerName repo: repo-name issues_cache_file: .ghcache/issues.yaml" } end |
.create ⇒ Object
28 29 30 31 32 33 34 35 |
# File 'lib/ghissues/ghissues.rb', line 28 def create ARGV.clear print "Issue title: " title = gets.strip print "Issue body: " body = gets.strip create_issue title, body end |
.open(*args) ⇒ Object
22 23 24 25 |
# File 'lib/ghissues/ghissues.rb', line 22 def open *args nocache = args && args.first =~ /reload|refresh/i paged_issues nocache end |