aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/resolver/set.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/resolver/set.rb')
-rw-r--r--lib/rubygems/resolver/set.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/rubygems/resolver/set.rb b/lib/rubygems/resolver/set.rb
index 32c137ef6b..f053b65e15 100644
--- a/lib/rubygems/resolver/set.rb
+++ b/lib/rubygems/resolver/set.rb
@@ -5,6 +5,15 @@
class Gem::Resolver::Set
##
+ # Set to true to disable network access for this set
+
+ attr_accessor :remote
+
+ def initialize # :nodoc:
+ @remote = true
+ end
+
+ ##
# The find_all method must be implemented. It returns all Resolver
# Specification objects matching the given DependencyRequest +req+.
@@ -23,5 +32,13 @@ class Gem::Resolver::Set
def prefetch reqs
end
+ ##
+ # When true, this set is allowed to access the network when looking up
+ # specifications or dependencies.
+
+ def remote? # :nodoc:
+ @remote
+ end
+
end