Class: Changelog::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/changelog.rb

Overview

TODO:

More than I can comprehend… Keep all incoming data in original format, so that it can be reproccessed. e.g. Make calls. Store Data. Retrieve data. Process data. Display data. Deploy. Mark sprint.ly items as deployed if complete. This will eventually be in a separate script. Sprint.ly status Compelete refactor into a modern ruby CLI app. More info output Color output for terminal HTML output with embedded links Logic to be improved for push and pull rquests Deployment logic to work differently for feature branches… I think

Direct Known Subclasses

Log, Release

Instance Method Summary collapse

Constructor Details

#initializeBase

Returns a new instance of Base.



32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/changelog.rb', line 32

def initialize
  @logger = Logging.logger[self]
  @logger.add_appenders \
    Logging.appenders.stdout,
    Logging.appenders.file('overview.log')
  @logger.level = :info

  APICache.store = Moneta.new(:YAML, :file => "#{self.class.name}_cache")
  APICache.logger.level = Logger::DEBUG

  #Caching for octokit
  #store = Moneta.new(:YAML, :file => 'changelog_octokit.cache')
  stack = Faraday::RackBuilder.new do |builder|
    builder.use Faraday::HttpCache
    builder.use Octokit::Response::RaiseError
    #builder.use :store => store
    builder.adapter Faraday.default_adapter
  end

  Octokit.middleware = stack
end