$23 GRAYBYTE WORDPRESS FILE MANAGER $71

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

/opt/alt/ruby21/lib64/ruby/2.1.0/rake/

HOME
Current File : /opt/alt/ruby21/lib64/ruby/2.1.0/rake//dsl_definition.rb
# 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.

  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

    # Declare a basic task.
    #
    # Example:
    #   task :clobber => [:clean] do
    #     rm_rf "html"
    #   end
    #
    def task(*args, &block)
      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)
      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)
      result = file_create(*args, &block)
      dir, _ = *Rake.application.resolve_args(args)
      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 => [:deploy_gem, :deploy_rdoc]
    #
    def multitask(*args, &block)
      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.
    #
    # E.g.
    #
    #   ns = namespace "nested" do
    #     task :run
    #   end
    #   task_run = ns[:run] # find :run in the given namespace.
    #
    def namespace(name=nil, &block)
      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 -o #{t.name} #{t.source}}
    #  end
    #
    def rule(*args, &block)
      Rake::Task.create_rule(*args, &block)
    end

    # Describe the next rake task.
    # Duplicate descriptions are discarded.
    #
    # Example:
    #   desc "Run the Unit Tests"
    #   task :test => [:build]
    #     runtests
    #   end
    #
    def desc(description)
      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)
      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 [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.53 PM
root / root
0755
contrib
--
3 Mar 2024 10.53 PM
root / linksafe
0755
ext
--
3 Mar 2024 10.53 PM
root / linksafe
0755
lib
--
3 Mar 2024 10.53 PM
root / linksafe
0755
loaders
--
3 Mar 2024 10.53 PM
root / linksafe
0755
alt_system.rb
3.125 KB
11 Oct 2013 9.35 PM
root / linksafe
0644
application.rb
20.781 KB
11 Oct 2013 9.35 PM
root / linksafe
0644
backtrace.rb
0.698 KB
11 Oct 2013 9.35 PM
root / linksafe
0644
clean.rb
1.369 KB
11 Oct 2013 9.35 PM
root / linksafe
0644
cloneable.rb
0.471 KB
15 Nov 2012 9.59 PM
root / linksafe
0644
default_loader.rb
0.16 KB
23 Jun 2011 10.11 PM
root / linksafe
0644
dsl_definition.rb
4.146 KB
11 Oct 2013 9.35 PM
root / linksafe
0644
early_time.rb
0.267 KB
23 Jun 2011 10.11 PM
root / linksafe
0644
file_creation_task.rb
0.654 KB
23 Jun 2011 10.11 PM
root / linksafe
0644
file_list.rb
11.824 KB
11 Oct 2013 9.35 PM
root / linksafe
0644
file_task.rb
1.283 KB
11 Oct 2013 9.35 PM
root / linksafe
0644
file_utils.rb
3.032 KB
11 Oct 2013 9.35 PM
root / linksafe
0644
file_utils_ext.rb
4.052 KB
11 Oct 2013 9.35 PM
root / linksafe
0644
gempackagetask.rb
0.113 KB
11 Oct 2013 9.35 PM
root / linksafe
0644
invocation_chain.rb
1.23 KB
11 Oct 2013 9.35 PM
root / linksafe
0644
invocation_exception_mixin.rb
0.421 KB
23 Jun 2011 10.11 PM
root / linksafe
0644
linked_list.rb
2.268 KB
11 Oct 2013 9.35 PM
root / linksafe
0644
multi_task.rb
0.308 KB
15 Nov 2012 9.59 PM
root / linksafe
0644
name_space.rb
0.604 KB
11 Oct 2013 9.35 PM
root / linksafe
0644
packagetask.rb
5.111 KB
11 Oct 2013 9.35 PM
root / linksafe
0644
pathmap.rb
0.025 KB
23 Jun 2011 10.11 PM
root / linksafe
0644
phony.rb
0.343 KB
15 Nov 2012 10.32 PM
root / linksafe
0644
private_reader.rb
0.355 KB
15 Nov 2012 10.01 PM
root / linksafe
0644
promise.rb
2.282 KB
11 Oct 2013 9.35 PM
root / linksafe
0644
pseudo_status.rb
0.417 KB
11 Oct 2013 9.35 PM
root / linksafe
0644
rake_module.rb
0.71 KB
15 Nov 2012 10.32 PM
root / linksafe
0644
rake_test_loader.rb
0.333 KB
28 Jun 2011 2.45 AM
root / linksafe
0644
rdoctask.rb
0.123 KB
11 Oct 2013 9.35 PM
root / linksafe
0644
ruby182_test_unit_fix.rb
0.85 KB
11 Oct 2013 9.35 PM
root / linksafe
0644
rule_recursion_overflow_error.rb
0.345 KB
23 Jun 2011 10.11 PM
root / linksafe
0644
runtest.rb
0.46 KB
11 Oct 2013 9.35 PM
root / linksafe
0644
scope.rb
0.848 KB
11 Oct 2013 9.35 PM
root / linksafe
0644
task.rb
10.962 KB
11 Oct 2013 9.35 PM
root / linksafe
0644
task_argument_error.rb
0.116 KB
23 Jun 2011 10.11 PM
root / linksafe
0644
task_arguments.rb
1.877 KB
11 Oct 2013 9.35 PM
root / linksafe
0644
task_manager.rb
8.402 KB
11 Oct 2013 9.35 PM
root / linksafe
0644
tasklib.rb
0.566 KB
11 Oct 2013 9.35 PM
root / linksafe
0644
testtask.rb
5.223 KB
11 Oct 2013 9.35 PM
root / linksafe
0644
thread_history_display.rb
1.106 KB
11 Oct 2013 9.35 PM
root / linksafe
0644
thread_pool.rb
4.744 KB
11 Oct 2013 9.35 PM
root / linksafe
0644
trace_output.rb
0.517 KB
11 Oct 2013 9.35 PM
root / linksafe
0644
version.rb
0.174 KB
11 Oct 2013 9.35 PM
root / linksafe
0644
win32.rb
1.537 KB
11 Oct 2013 9.35 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF