Module: Perkins

Defined in:
lib/perkins/build/data.rb,
lib/perkins.rb,
lib/perkins/cli.rb,
lib/perkins/dsl.rb,
lib/perkins/repo.rb,
lib/perkins/build.rb,
lib/perkins/assets.rb,
lib/perkins/commit.rb,
lib/perkins/logger.rb,
lib/perkins/runner.rb,
lib/perkins/server.rb,
lib/perkins/version.rb,
lib/perkins/notifier.rb,
lib/perkins/thor_utils.rb,
lib/perkins/application.rb,
lib/perkins/auth/github.rb,
lib/perkins/build/shell.rb,
lib/perkins/build/script.rb,
lib/perkins/build_report.rb,
lib/perkins/build_worker.rb,
lib/perkins/dsl/app_proxy.rb,
lib/perkins/build/data/env.rb,
lib/perkins/build/data/var.rb,
lib/perkins/build/script/go.rb,
lib/perkins/build/shell/dsl.rb,
lib/perkins/build/script/jdk.rb,
lib/perkins/build/script/rvm.rb,
lib/perkins/build/shell/node.rb,
lib/perkins/build/script/ruby.rb,
lib/perkins/git_loader_worker.rb,
lib/perkins/build/script/stages.rb,
lib/perkins/build/script/bundler.rb,
lib/perkins/build/script/helpers.rb

Overview

Defined Under Namespace

Modules: Auth, Build, ThorUtils Classes: AppProxy, Application, Assets, BuildReport, BuildWorker, CLI, Commit, GitLoaderWorker, Logger, Notifier, Repo, Runner, Server

Constant Summary collapse

ROOT_PATH =
File.expand_path(File.dirname(File.dirname(__FILE__)))
VERSION =
"0.0.5"

Class Method Summary collapse

Class Method Details

.application(options = {}, &block) ⇒ Object



3
4
5
6
7
8
9
10
11
# File 'lib/perkins/dsl.rb', line 3

def self.application(options = {}, &block)
  app_proxy = Perkins::AppProxy.new(options)
  if block.arity == 0
    app_proxy.instance_eval &block
  else
    app_proxy.instance_exec(app_proxy, &block)
  end
  app_proxy.app
end