$98 GRAYBYTE WORDPRESS FILE MANAGER $83

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.23
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/ruby34/share/gems/gems/rake-13.2.1/lib/rake/

HOME
Current File : /opt/alt/ruby34/share/gems/gems/rake-13.2.1/lib/rake//dsl_definition.rb
# frozen_string_literal: true
# Rake DSL functions.
require "rake/file_utils_ext"

module Rake

  ##
  # DSL is a module that provides #task, #desc, #namespace, etc.  Use this
  # when you'd like to use rake outside the top level scope.
  #
  # For a Rakefile you run from the command line this module is automatically
  # included.

  module DSL

    #--
    # Include the FileUtils file manipulation functions in the top
    # level module, but mark them private so that they don't
    # unintentionally define methods on other objects.
    #++

    include FileUtilsExt
    private(*FileUtils.instance_methods(false))
    private(*FileUtilsExt.instance_methods(false))

    private

    # :call-seq:
    #   task(task_name)
    #   task(task_name: dependencies)
    #   task(task_name, arguments => dependencies)
    #
    # Declare a basic task.  The +task_name+ is always the first argument.  If
    # the task name contains a ":" it is defined in that namespace.
    #
    # The +dependencies+ may be a single task name or an Array of task names.
    # The +argument+ (a single name) or +arguments+ (an Array of names) define
    # the arguments provided to the task.
    #
    # The task, argument and dependency names may be either symbols or
    # strings.
    #
    # A task with a single dependency:
    #
    #   task clobber: %w[clean] do
    #     rm_rf "html"
    #   end
    #
    # A task with an argument and a dependency:
    #
    #   task :package, [:version] => :test do |t, args|
    #     # ...
    #   end
    #
    # To invoke this task from the command line:
    #
    #   $ rake package[1.2.3]
    #
    def task(*args, &block) # :doc:
      Rake::Task.define_task(*args, &block)
    end

    # Declare a file task.
    #
    # Example:
    #   file "config.cfg" => ["config.template"] do
    #     open("config.cfg", "w") do |outfile|
    #       open("config.template") do |infile|
    #         while line = infile.gets
    #           outfile.puts line
    #         end
    #       end
    #     end
    #  end
    #
    def file(*args, &block) # :doc:
      Rake::FileTask.define_task(*args, &block)
    end

    # Declare a file creation task.
    # (Mainly used for the directory command).
    def file_create(*args, &block)
      Rake::FileCreationTask.define_task(*args, &block)
    end

    # Declare a set of files tasks to create the given directories on
    # demand.
    #
    # Example:
    #   directory "testdata/doc"
    #
    def directory(*args, &block) # :doc:
      args = args.flat_map { |arg| arg.is_a?(FileList) ? arg.to_a.flatten : arg }
      result = file_create(*args, &block)
      dir, _ = *Rake.application.resolve_args(args)
      dir = Rake.from_pathname(dir)
      Rake.each_dir_parent(dir) do |d|
        file_create d do |t|
          mkdir_p t.name unless File.exist?(t.name)
        end
      end
      result
    end

    # Declare a task that performs its prerequisites in
    # parallel. Multitasks does *not* guarantee that its prerequisites
    # will execute in any given order (which is obvious when you think
    # about it)
    #
    # Example:
    #   multitask deploy: %w[deploy_gem deploy_rdoc]
    #
    def multitask(*args, &block) # :doc:
      Rake::MultiTask.define_task(*args, &block)
    end

    # Create a new rake namespace and use it for evaluating the given
    # block.  Returns a NameSpace object that can be used to lookup
    # tasks defined in the namespace.
    #
    # Example:
    #
    #   ns = namespace "nested" do
    #     # the "nested:run" task
    #     task :run
    #   end
    #   task_run = ns[:run] # find :run in the given namespace.
    #
    # Tasks can also be defined in a namespace by using a ":" in the task
    # name:
    #
    #   task "nested:test" do
    #     # ...
    #   end
    #
    def namespace(name=nil, &block) # :doc:
      name = name.to_s if name.kind_of?(Symbol)
      name = name.to_str if name.respond_to?(:to_str)
      unless name.kind_of?(String) || name.nil?
        raise ArgumentError, "Expected a String or Symbol for a namespace name"
      end
      Rake.application.in_namespace(name, &block)
    end

    # Declare a rule for auto-tasks.
    #
    # Example:
    #  rule '.o' => '.c' do |t|
    #    sh 'cc', '-c', '-o', t.name, t.source
    #  end
    #
    def rule(*args, &block) # :doc:
      Rake::Task.create_rule(*args, &block)
    end

    # Describes the next rake task.  Duplicate descriptions are discarded.
    # Descriptions are shown with <code>rake -T</code> (up to the first
    # sentence) and <code>rake -D</code> (the entire description).
    #
    # Example:
    #   desc "Run the Unit Tests"
    #   task test: [:build] do
    #     # ... run tests
    #   end
    #
    def desc(description) # :doc:
      Rake.application.last_description = description
    end

    # Import the partial Rakefiles +fn+.  Imported files are loaded
    # _after_ the current file is completely loaded.  This allows the
    # import statement to appear anywhere in the importing file, and yet
    # allowing the imported files to depend on objects defined in the
    # importing file.
    #
    # A common use of the import statement is to include files
    # containing dependency declarations.
    #
    # See also the --rakelibdir command line option.
    #
    # Example:
    #   import ".depend", "my_rules"
    #
    def import(*fns) # :doc:
      fns.each do |fn|
        Rake.application.add_import(fn)
      end
    end
  end
  extend FileUtilsExt
end

# Extend the main object with the DSL commands. This allows top-level
# calls to task, etc. to work from a Rakefile without polluting the
# object inheritance tree.
self.extend Rake::DSL


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
1 Jan 1970 12.00 AM
root / root
0
ext
--
10 Feb 2026 9.39 AM
root / linksafe
0755
loaders
--
10 Feb 2026 9.39 AM
root / linksafe
0755
application.rb
25.887 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
backtrace.rb
0.921 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
clean.rb
2.028 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
cloneable.rb
0.438 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
cpu_counter.rb
2.325 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
default_loader.rb
0.259 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
dsl_definition.rb
5.57 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
early_time.rb
0.361 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
file_creation_task.rb
0.683 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
file_list.rb
12.453 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
file_task.rb
1.543 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
file_utils.rb
3.761 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
file_utils_ext.rb
3.838 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
invocation_chain.rb
1.186 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
invocation_exception_mixin.rb
0.45 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
late_time.rb
0.288 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
linked_list.rb
2.77 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
multi_task.rb
0.337 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
name_space.rb
0.686 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
packagetask.rb
6.018 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
phony.rb
0.372 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
private_reader.rb
0.385 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
promise.rb
2.28 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
pseudo_status.rb
0.396 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
rake_module.rb
1.492 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
rake_test_loader.rb
0.466 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
rule_recursion_overflow_error.rb
0.373 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
scope.rb
0.877 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
task.rb
12.743 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
task_argument_error.rb
0.146 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
task_arguments.rb
2.41 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
task_manager.rb
10.024 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
tasklib.rb
0.161 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
testtask.rb
5.19 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
thread_history_display.rb
1.129 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
thread_pool.rb
4.671 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
trace_output.rb
0.562 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
version.rb
0.203 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
win32.rb
1.516 KB
27 Jan 2026 4.00 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF