Module: Nesta::Plugin::ProjectMeta

Defined in:
lib/nesta-plugin-project-meta/init.rb,
lib/nesta-plugin-project-meta/version.rb

Defined Under Namespace

Modules: Helpers

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.github_meta(page) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/nesta-plugin-project-meta/init.rb', line 8

def self.github_meta(page)
  github_repo = page.('github_repo')
  return nil if github_repo.nil?

  APICache.get("github-#{github_repo}", :fail => nil) do
    Octokit.repo(github_repo)
  end
end