Beispiel #1
0
 public NuggifyCommand(FileSystem fileSystem, CurrentWorkingDirectory current, string name, string version)
 {
     _fileSystem = fileSystem;
     _current = current;
     _name = name;
     _version = version;
 }
Beispiel #2
0
 public void openDir(String dir)
 {
     tree.flush();
     files = new FileSystem.FileSystem(dir, tree, editor);
     tree.getIndexAtPath("root").path = dir;
     sio.File.WriteAllText(configFile, dir);
 }
        public FileBasedProjectConfiguration(FileSystem fileSystem, GlobalConfiguration globalConfiguration, NuConventions conventions)
            : base(fileSystem, GetFile(fileSystem, conventions))
        {
            _globalConfiguration = globalConfiguration;
            _conventions = conventions;

            OnMissing = GetGlobalConfigurationValue;
        }
        public FileBasedGlobalConfiguration(DefaultsConfiguration defaults, FileSystem fileSystem, NuConventions conventions, InstallationDirectory install)
            : base(fileSystem, PathToMe(install, conventions))
        {
            Defaults = defaults;

            OnMissing = GetDefaultConfigurationValue;
            _conventions = conventions;
        }
Beispiel #5
0
        public NoJankExport(String inpath, String outpath, String template, String title)
        {
            this.inpath   = inpath;
            this.outpath  = outpath;
            this.template = template;
            this.title    = title;
            loadTemplate();
            tree = new FileTree(false);

            files = new FileSystem.FileSystem(inpath, tree);
        }
        public static File GetFile(FileSystem fileSystem, NuConventions conventions)
        {
            Directory a = WalkThePathLookingForNu(fileSystem.GetCurrentDirectory(), conventions);

            return a.GetChildFile(conventions.ConfigurationFileName);
        }
 public FileBasedDefaultsConfiguration(FileSystem fileSystem, NuConventions conventions, InstallationDirectory install)
     : base(fileSystem, GetMyPath(install, conventions))
 {
 }
Beispiel #8
0
 public FileBasedLocalCatalogue(FileSystem fileSystem, InstallationDirectory installLocation)
 {
     _fileSystem = fileSystem;
     _file = installLocation.GetChildFile("catalogue.json");
     RemoteCatalogues = ReadExistingDataFromFile(_file);
 }
Beispiel #9
0
 public InitializeCommand(string path, bool create, FileSystem fileSystem)
 {
     _path = path;
     _create = create;
     _fileSystem = fileSystem;
 }
Beispiel #10
0
        protected FileBasedConfiguration(FileSystem fileSystem, File configurationPath)
        {
            FileSystem = fileSystem;

            Entries = ReadExistingConfigurationFromFile(configurationPath);
        }