Skip to content
Henrik edited this page Aug 21, 2014 · 7 revisions

When you require 'albacore' you will get a few methods added and available for use within your Rakefile, these are specified in CrossPlatformCmd, and are as follows:

  • #system : (processPath : string) -> (arguments : string array)
  • #sh : same as above
  • #shie : same as above
  • #which : (binaryName : string) -> (path : string)
  • #normalise_slashes - takes a path-looking string and normalises the slashes to the operating system that the command is running on. So for Windows, you'd get back-slashes and for linux forward slashes.
  • #chdir (work_dir : ?string) (block : Block<unit, x>) : x - takes a string work dir to be in and a block of ruby to execute in that work dir and returns the return value of block.
Clone this wiki locally