summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Lerche <carllerche@mac.com>2010-08-06 13:00:04 -0700
committerCarl Lerche <carllerche@mac.com>2010-08-06 13:00:04 -0700
commitd8844d53d43ee32a95a399599921634364f47d46 (patch)
tree26821ece778fd66bff00dcd9e94d1df3d977de1a
parent27800e7961165fe7582098fe9f9c52bd10fbbd97 (diff)
downloadbundler-d8844d53d43ee32a95a399599921634364f47d46.tar.gz
Rename the internal bundler variable from Bundler.deployment to Bundler.frozen
-rw-r--r--lib/bundler.rb2
-rw-r--r--lib/bundler/cli.rb2
-rw-r--r--lib/bundler/definition.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb
index 6829c990e7..ef69367e39 100644
--- a/lib/bundler.rb
+++ b/lib/bundler.rb
@@ -61,7 +61,7 @@ module Bundler
class << self
attr_writer :ui, :bundle_path
- attr_accessor :deployment
+ attr_accessor :frozen
def configure
@configured ||= begin
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index ed003b9002..418eefaab5 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -153,7 +153,7 @@ module Bundler
end
if opts[:deployment]
- Bundler.deployment = true
+ Bundler.frozen = true
unless Bundler.default_lockfile.exist?
raise ProductionError, "The --deployment flag requires a Gemfile.lock. Please make " \
diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb
index 84ec246170..4a78abc3b1 100644
--- a/lib/bundler/definition.rb
+++ b/lib/bundler/definition.rb
@@ -68,7 +68,7 @@ module Bundler
@new_platform = !@platforms.include?(current_platform)
@platforms |= [current_platform]
- ensure_equivalent_gemfile_and_lockfile if Bundler.deployment
+ ensure_equivalent_gemfile_and_lockfile if Bundler.frozen
eager_unlock = expand_dependencies(@unlock[:gems])
@unlock[:gems] = @locked_specs.for(eager_unlock).map { |s| s.name }