diff options
author | Carl Lerche <carllerche@mac.com> | 2010-08-06 13:00:04 -0700 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-08-06 13:00:04 -0700 |
commit | d8844d53d43ee32a95a399599921634364f47d46 (patch) | |
tree | 26821ece778fd66bff00dcd9e94d1df3d977de1a | |
parent | 27800e7961165fe7582098fe9f9c52bd10fbbd97 (diff) | |
download | bundler-d8844d53d43ee32a95a399599921634364f47d46.tar.gz |
Rename the internal bundler variable from Bundler.deployment to Bundler.frozen
-rw-r--r-- | lib/bundler.rb | 2 | ||||
-rw-r--r-- | lib/bundler/cli.rb | 2 | ||||
-rw-r--r-- | lib/bundler/definition.rb | 2 |
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 } |