Sha256: a36f54921ffb9ec964c6eb30b1792b2d13afcae99f7c5ce11733043610176dfd

Contents?: true

Size: 672 Bytes

Versions: 90

Compression:

Stored size: 672 Bytes

Contents

##
# The NameSpace class will lookup task names in the scope defined by a
# +namespace+ command.

class Rake::NameSpace

  ##
  # Create a namespace lookup object using the given task manager
  # and the list of scopes.

  def initialize(task_manager, scope_list)
    @task_manager = task_manager
    @scope = scope_list.dup
  end

  ##
  # Lookup a task named +name+ in the namespace.

  def [](name)
    @task_manager.lookup(name, @scope)
  end

  ##
  # The scope of the namespace (a LinkedList)

  def scope
    @scope.dup
  end

  ##
  # Return the list of tasks defined in this and nested namespaces.

  def tasks
    @task_manager.tasks_in_scope(@scope)
  end

end

Version data entries

90 entries across 83 versions & 19 rubygems

Version Path
dadapush_client-1.0.1 vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/lib/rake/name_space.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.5.0/gems/rake-12.0.0/lib/rake/name_space.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.6.0/gems/rake-12.0.0/lib/rake/name_space.rb
vagrant-unbundled-2.2.3.0 vendor/bundle/ruby/2.5.0/gems/rake-12.0.0/lib/rake/name_space.rb
vagrant-unbundled-2.2.2.0 vendor/bundle/ruby/2.5.0/gems/rake-12.0.0/lib/rake/name_space.rb
vagrant-unbundled-2.2.0.0 vendor/bundle/ruby/2.5.0/gems/rake-12.0.0/lib/rake/name_space.rb
vagrant-unbundled-2.1.4.0 vendor/bundle/ruby/2.5.0/gems/rake-12.0.0/lib/rake/name_space.rb
vagrant-unbundled-2.1.2.0 vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/lib/rake/name_space.rb
cloudsmith-api-0.30.7 vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/lib/rake/name_space.rb
color_me_shop-1.0.0 vendor/bundle/ruby/2.5.0/gems/rake-12.0.0/lib/rake/name_space.rb
vagrant-unbundled-2.1.1.0 vendor/bundle/ruby/2.5.0/gems/rake-12.0.0/lib/rake/name_space.rb
vagrant-unbundled-2.0.4.0 vendor/bundle/ruby/2.5.0/gems/rake-12.0.0/lib/rake/name_space.rb
vagrant-unbundled-2.0.3.0 vendor/bundle/ruby/2.5.0/gems/rake-12.0.0/lib/rake/name_space.rb
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.5.0/gems/rake-12.0.0/lib/rake/name_space.rb
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/name_space.rb
vagrant-unbundled-2.0.1.0 vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/name_space.rb
cloudsmith-api-0.21.4 vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/lib/rake/name_space.rb
logstash-output-icinga-1.1.0 vendor/jruby/1.9/gems/rake-12.0.0/lib/rake/name_space.rb
logstash-output-icinga-1.1.0 vendor/jruby/2.3.0/gems/rake-12.0.0/lib/rake/name_space.rb
vagrant-unbundled-2.0.0.1 vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/name_space.rb