Skip to content

Scripting context Global object

David Mórász edited this page May 31, 2016 · 1 revision

Every script runs with its own global object or context. The type of this object is vpm.VpmGlobals. Members of this object can be accessed in the script implicitly.

Properties

  • VpmVVVV VVVV: vvvv related information
    • string Dir: vvvv's app folder which contains vvvv.exe
    • string Exe: Location of vvvv.exe
    • string Architecture: It can be "x86" or "x64"
  • VpmEnv VPM: vpm related information
    • string Exe: Location of vpm.exe
    • string_ TempDir: Location of ".vpm" working temporary folder
  • VPack Pack: currently installing pack related information
    • string Name: Name of pack
    • string Author: Author of pack
    • string Source: Specified source if any
    • string TempDir: Location of working temporary folder inside ".vpm"
    • string InstallScript: Installation script code
    • List<string> Aliases: Alternative names for the same pack
    • List<VPack> Dependencies: Other packs this one is depending on

Methods

  • void CopyDir (string srcdir, string dstdir, string[] ignore = null, string[] match = null)
  • void GitClone (string srcrepo, string dstdir, bool submodules = false, string branch = "")
  • void BuildSolution (int vsversion, string slnpath, string args)
  • void BuildSolution (int vsversion, string slnpath, string args, bool restorenugets)
  • void Download (string src, string dst)
  • void Extract (string src, string dstdir)
Clone this wiki locally