示例#1
0
        private void update_command_in_action_file(string command)
        {
            var filePath = _fileSystem.combine_paths(_fileSystem.get_current_directory(), "shell", VAGRANT_ACTION_FILE);
            var contents = _fileSystem.read_file(filePath);

            var config = new VagrantProperties
            {
                Command = command
            };

            _fileSystem.write_file(filePath, TokenReplacer.replace_tokens(config, contents), Encoding.UTF8);
        }
        private void update_command_in_action_file(string command)
        {
            var filePath = _fileSystem.combine_paths(_fileSystem.get_current_directory(), "shell", VAGRANT_ACTION_FILE);
            var contents = _fileSystem.read_file(filePath);

            var config = new VagrantProperties
            {
                Command = command
            };

            _fileSystem.write_file(filePath, TokenReplacer.replace_tokens(config, contents), Encoding.UTF8);
        }