Skip to content

Commit

Permalink
Merge branch 'disable_deploy'
Browse files Browse the repository at this point in the history
Conflicts:
	CHANGELOG.md
  • Loading branch information
hone committed Jan 30, 2013
2 parents 8137a21 + 066d4a1 commit 4c8d376
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
10 changes: 8 additions & 2 deletions CHANGELOG.md
@@ -1,10 +1,16 @@
## v47
## v48

Features:

* Display ruby version change when busting the cache

## v46 (1/10/2012)
## v47 (1/30/2013)

Features:

* Disable ruby deploys due to rubygems.org compromise

## v46 (1/10/2013)

Features:

Expand Down
4 changes: 2 additions & 2 deletions lib/language_pack.rb
Expand Up @@ -9,7 +9,7 @@ module LanguagePack
def self.detect(*args)
Dir.chdir(args.first)

pack = [ Rails3, Rails2, Rack, Ruby ].detect do |klass|
pack = [ DisableDeploys, Rails3, Rails2, Rack, Ruby ].detect do |klass|
klass.use?
end

Expand All @@ -22,4 +22,4 @@ def self.detect(*args)
require "language_pack/rack"
require "language_pack/rails2"
require "language_pack/rails3"

require "language_pack/disable_deploys"
17 changes: 17 additions & 0 deletions lib/language_pack/disable_deploys.rb
@@ -0,0 +1,17 @@
require "language_pack"
require "language_pack/base"

class LanguagePack::DisableDeploys < LanguagePack::Base
def self.use?
File.exist?("Gemfile")
end

def name
"Ruby/DisableDeploys"
end

def compile
error "Ruby deploys have been temporarily disabled. We will have more information available shortly, including a workaround."
end
end

0 comments on commit 4c8d376

Please sign in to comment.