AddSettings: Add settings file to project

Description Usage Arguments

Description

Creates a sample settings file, by default (leading dashes for formatting, whitespace in the actual file):

current: qa
all:
— share: /media/share
qa:
— certdir: path/to/qa/certs
— server: https://hqlqasws1.hq.un.fao.org:8181/sws
— token: abcdef0123456789
production:
— certdir: path/to/prod/certs
— server: https://hqlprswsas1.hq.un.fao.org:8181/sws
— token: 9876543210fedcba

Usage

1
2
AddSettings(dir = ".", filename = "sws.yml", gitignore = TRUE,
  fields = NULL)

Arguments

dir

character. Directory in which to write settings files

filename

character. Name of settings file to write

gitignore

logical. Should this file be added to the .gitignore?

fields

list. Manually specify the structure of the settings file


SWS-Methodology/faoswsModules documentation built on May 9, 2019, 11:49 a.m.