In Files

  • minirake

MiniRake::DSL

Public Instance Methods

desc(text) click to toggle source
 
               # File minirake, line 284
def desc(text)
end
            
directory(dir) click to toggle source

Declare a set of files tasks to create the given directories on demand.

 
               # File minirake, line 257
def directory(dir)
  path = []
  Sys.split_all(dir).each do |p|
    path << p
    FileTask.define_task(File.join(path)) do |t|
      Sys.makedirs(t.name)
    end
  end
end
            
file(args, &block) click to toggle source

Declare a file task.

 
               # File minirake, line 251
def file(args, &block)
  MiniRake::FileTask.define_task(args, &block)
end
            
log(msg) click to toggle source

Write a message to standard out if $verbose is enabled.

 
               # File minirake, line 273
def log(msg)
  print "  " if $trace && $verbose
  puts msg if $verbose
end
            
rule(args, &block) click to toggle source

Declare a rule for auto-tasks.

 
               # File minirake, line 268
def rule(args, &block)
  MiniRake::Task.create_rule(args, &block)
end
            
sh(cmd) click to toggle source

Run the system command cmd.

 
               # File minirake, line 279
def sh(cmd)
  puts cmd if $verbose
  system(cmd) or fail "Command Failed: [#{cmd}]"
end
            
task(args, &block) click to toggle source

Declare a basic task.

 
               # File minirake, line 246
def task(args, &block)
  MiniRake::Task.define_task(args, &block)
end
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.

blog comments powered by Disqus