├── .gitignore ├── .travis.yml ├── CHANGELOG.md ├── LICENSE ├── Makefile ├── README.md ├── docs ├── Custom Types.md ├── Getting Started.md └── Integrating with Distillery.md ├── lib ├── conform.ex ├── conform │ ├── conf.ex │ ├── logger.ex │ ├── parse.ex │ ├── releases │ │ └── plugin.ex │ ├── schema.ex │ ├── schema │ │ ├── mapping.ex │ │ ├── transform.ex │ │ └── validator.ex │ ├── sysconfig.ex │ ├── translate.ex │ ├── type.ex │ ├── types │ │ └── enum.ex │ ├── utils │ │ ├── code.ex │ │ └── utils.ex │ └── validators │ │ └── range_validator.ex └── mix │ └── tasks │ ├── conform.archive.ex │ ├── conform.configure.ex │ ├── conform.effective.ex │ └── conform.new.ex ├── mix.exs ├── mix.lock ├── priv └── bin │ ├── conform │ ├── post_configure.sh │ ├── post_upgrade.sh │ └── pre_upgrade.sh ├── src ├── conform_parse.erl └── conform_parse.peg ├── tasks └── compile.peg.exs └── test ├── conf_parse_test.exs ├── conf_schema_test.exs ├── conf_translate_test.exs ├── config_test.exs ├── configs ├── evl_daemon.exs ├── issue_114.exs ├── issue_122.exs ├── issue_85.exs ├── logger.exs ├── mega_maid.exs ├── nested_list.exs ├── raw_binary.exs ├── readme_example.exs ├── single_nested_list.exs └── utf8.exs ├── conform_utils_code_test.exs ├── confs ├── complex_example.conf ├── evl_daemon.conf ├── lager_example.conf ├── mega_maid.conf ├── nested_list.conf ├── rainbow.conf ├── readme_example.conf ├── single_nested_list.conf ├── strings.conf ├── test.conf └── utf8.conf ├── effective_test.exs ├── fixtures ├── example_app │ ├── .gitignore │ ├── README.md │ ├── config │ │ ├── .gitignore │ │ ├── test.conf │ │ └── test.schema.exs │ ├── lib │ │ └── example_app.ex │ ├── mix.exs │ └── test │ │ ├── example_app_test.exs │ │ └── test_helper.exs ├── fake_app │ ├── .gitignore │ ├── README.md │ ├── config │ │ ├── config.exs │ │ └── fake_app.schema.exs │ ├── lib │ │ └── fake_app.ex │ ├── mix.exs │ └── test │ │ ├── fake_app_test.exs │ │ └── test_helper.exs └── test_app │ ├── config.dev.exs │ ├── config.exs │ ├── config.prod.exs │ ├── config.test.exs │ ├── test.conf │ └── test.schema.exs ├── integration_test.exs ├── schemas ├── complex_schema.exs ├── env_var.schema.exs ├── evl_daemon.schema.exs ├── mega_maid.schema.exs ├── merge_dep.schema.exs ├── merge_master.schema.exs ├── merged_schema.exs ├── readme_example.schema.exs ├── small.schema.exs ├── test.schema.exs └── utf8.schema.exs ├── test_helper.exs └── utils_test.exs /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/README.md -------------------------------------------------------------------------------- /docs/Custom Types.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/docs/Custom Types.md -------------------------------------------------------------------------------- /docs/Getting Started.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/docs/Getting Started.md -------------------------------------------------------------------------------- /docs/Integrating with Distillery.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/docs/Integrating with Distillery.md -------------------------------------------------------------------------------- /lib/conform.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/lib/conform.ex -------------------------------------------------------------------------------- /lib/conform/conf.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/lib/conform/conf.ex -------------------------------------------------------------------------------- /lib/conform/logger.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/lib/conform/logger.ex -------------------------------------------------------------------------------- /lib/conform/parse.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/lib/conform/parse.ex -------------------------------------------------------------------------------- /lib/conform/releases/plugin.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/lib/conform/releases/plugin.ex -------------------------------------------------------------------------------- /lib/conform/schema.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/lib/conform/schema.ex -------------------------------------------------------------------------------- /lib/conform/schema/mapping.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/lib/conform/schema/mapping.ex -------------------------------------------------------------------------------- /lib/conform/schema/transform.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/lib/conform/schema/transform.ex -------------------------------------------------------------------------------- /lib/conform/schema/validator.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/lib/conform/schema/validator.ex -------------------------------------------------------------------------------- /lib/conform/sysconfig.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/lib/conform/sysconfig.ex -------------------------------------------------------------------------------- /lib/conform/translate.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/lib/conform/translate.ex -------------------------------------------------------------------------------- /lib/conform/type.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/lib/conform/type.ex -------------------------------------------------------------------------------- /lib/conform/types/enum.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/lib/conform/types/enum.ex -------------------------------------------------------------------------------- /lib/conform/utils/code.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/lib/conform/utils/code.ex -------------------------------------------------------------------------------- /lib/conform/utils/utils.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/lib/conform/utils/utils.ex -------------------------------------------------------------------------------- /lib/conform/validators/range_validator.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/lib/conform/validators/range_validator.ex -------------------------------------------------------------------------------- /lib/mix/tasks/conform.archive.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/lib/mix/tasks/conform.archive.ex -------------------------------------------------------------------------------- /lib/mix/tasks/conform.configure.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/lib/mix/tasks/conform.configure.ex -------------------------------------------------------------------------------- /lib/mix/tasks/conform.effective.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/lib/mix/tasks/conform.effective.ex -------------------------------------------------------------------------------- /lib/mix/tasks/conform.new.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/lib/mix/tasks/conform.new.ex -------------------------------------------------------------------------------- /mix.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/mix.exs -------------------------------------------------------------------------------- /mix.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/mix.lock -------------------------------------------------------------------------------- /priv/bin/conform: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/priv/bin/conform -------------------------------------------------------------------------------- /priv/bin/post_configure.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/priv/bin/post_configure.sh -------------------------------------------------------------------------------- /priv/bin/post_upgrade.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/priv/bin/post_upgrade.sh -------------------------------------------------------------------------------- /priv/bin/pre_upgrade.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/priv/bin/pre_upgrade.sh -------------------------------------------------------------------------------- /src/conform_parse.erl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/src/conform_parse.erl -------------------------------------------------------------------------------- /src/conform_parse.peg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/src/conform_parse.peg -------------------------------------------------------------------------------- /tasks/compile.peg.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/tasks/compile.peg.exs -------------------------------------------------------------------------------- /test/conf_parse_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/conf_parse_test.exs -------------------------------------------------------------------------------- /test/conf_schema_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/conf_schema_test.exs -------------------------------------------------------------------------------- /test/conf_translate_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/conf_translate_test.exs -------------------------------------------------------------------------------- /test/config_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/config_test.exs -------------------------------------------------------------------------------- /test/configs/evl_daemon.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/configs/evl_daemon.exs -------------------------------------------------------------------------------- /test/configs/issue_114.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/configs/issue_114.exs -------------------------------------------------------------------------------- /test/configs/issue_122.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/configs/issue_122.exs -------------------------------------------------------------------------------- /test/configs/issue_85.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/configs/issue_85.exs -------------------------------------------------------------------------------- /test/configs/logger.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/configs/logger.exs -------------------------------------------------------------------------------- /test/configs/mega_maid.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/configs/mega_maid.exs -------------------------------------------------------------------------------- /test/configs/nested_list.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/configs/nested_list.exs -------------------------------------------------------------------------------- /test/configs/raw_binary.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/configs/raw_binary.exs -------------------------------------------------------------------------------- /test/configs/readme_example.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/configs/readme_example.exs -------------------------------------------------------------------------------- /test/configs/single_nested_list.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/configs/single_nested_list.exs -------------------------------------------------------------------------------- /test/configs/utf8.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/configs/utf8.exs -------------------------------------------------------------------------------- /test/conform_utils_code_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/conform_utils_code_test.exs -------------------------------------------------------------------------------- /test/confs/complex_example.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/confs/complex_example.conf -------------------------------------------------------------------------------- /test/confs/evl_daemon.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/confs/evl_daemon.conf -------------------------------------------------------------------------------- /test/confs/lager_example.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/confs/lager_example.conf -------------------------------------------------------------------------------- /test/confs/mega_maid.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/confs/mega_maid.conf -------------------------------------------------------------------------------- /test/confs/nested_list.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/confs/nested_list.conf -------------------------------------------------------------------------------- /test/confs/rainbow.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/confs/rainbow.conf -------------------------------------------------------------------------------- /test/confs/readme_example.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/confs/readme_example.conf -------------------------------------------------------------------------------- /test/confs/single_nested_list.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/confs/single_nested_list.conf -------------------------------------------------------------------------------- /test/confs/strings.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/confs/strings.conf -------------------------------------------------------------------------------- /test/confs/test.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/confs/test.conf -------------------------------------------------------------------------------- /test/confs/utf8.conf: -------------------------------------------------------------------------------- 1 | utf8 = "Fixé" 2 | -------------------------------------------------------------------------------- /test/effective_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/effective_test.exs -------------------------------------------------------------------------------- /test/fixtures/example_app/.gitignore: -------------------------------------------------------------------------------- 1 | /_build 2 | /cover 3 | /deps 4 | erl_crash.dump 5 | *.ez 6 | mix.lock 7 | sys.config 8 | -------------------------------------------------------------------------------- /test/fixtures/example_app/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/fixtures/example_app/README.md -------------------------------------------------------------------------------- /test/fixtures/example_app/config/.gitignore: -------------------------------------------------------------------------------- 1 | sys.config 2 | -------------------------------------------------------------------------------- /test/fixtures/example_app/config/test.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/fixtures/example_app/config/test.conf -------------------------------------------------------------------------------- /test/fixtures/example_app/config/test.schema.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/fixtures/example_app/config/test.schema.exs -------------------------------------------------------------------------------- /test/fixtures/example_app/lib/example_app.ex: -------------------------------------------------------------------------------- 1 | defmodule ExampleApp do 2 | end 3 | -------------------------------------------------------------------------------- /test/fixtures/example_app/mix.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/fixtures/example_app/mix.exs -------------------------------------------------------------------------------- /test/fixtures/example_app/test/example_app_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/fixtures/example_app/test/example_app_test.exs -------------------------------------------------------------------------------- /test/fixtures/example_app/test/test_helper.exs: -------------------------------------------------------------------------------- 1 | ExUnit.start() 2 | -------------------------------------------------------------------------------- /test/fixtures/fake_app/.gitignore: -------------------------------------------------------------------------------- 1 | /_build 2 | /cover 3 | /deps 4 | erl_crash.dump 5 | *.ez 6 | -------------------------------------------------------------------------------- /test/fixtures/fake_app/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/fixtures/fake_app/README.md -------------------------------------------------------------------------------- /test/fixtures/fake_app/config/config.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/fixtures/fake_app/config/config.exs -------------------------------------------------------------------------------- /test/fixtures/fake_app/config/fake_app.schema.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/fixtures/fake_app/config/fake_app.schema.exs -------------------------------------------------------------------------------- /test/fixtures/fake_app/lib/fake_app.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/fixtures/fake_app/lib/fake_app.ex -------------------------------------------------------------------------------- /test/fixtures/fake_app/mix.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/fixtures/fake_app/mix.exs -------------------------------------------------------------------------------- /test/fixtures/fake_app/test/fake_app_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/fixtures/fake_app/test/fake_app_test.exs -------------------------------------------------------------------------------- /test/fixtures/fake_app/test/test_helper.exs: -------------------------------------------------------------------------------- 1 | ExUnit.start() 2 | -------------------------------------------------------------------------------- /test/fixtures/test_app/config.dev.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/fixtures/test_app/config.dev.exs -------------------------------------------------------------------------------- /test/fixtures/test_app/config.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/fixtures/test_app/config.exs -------------------------------------------------------------------------------- /test/fixtures/test_app/config.prod.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/fixtures/test_app/config.prod.exs -------------------------------------------------------------------------------- /test/fixtures/test_app/config.test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/fixtures/test_app/config.test.exs -------------------------------------------------------------------------------- /test/fixtures/test_app/test.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/fixtures/test_app/test.conf -------------------------------------------------------------------------------- /test/fixtures/test_app/test.schema.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/fixtures/test_app/test.schema.exs -------------------------------------------------------------------------------- /test/integration_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/integration_test.exs -------------------------------------------------------------------------------- /test/schemas/complex_schema.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/schemas/complex_schema.exs -------------------------------------------------------------------------------- /test/schemas/env_var.schema.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/schemas/env_var.schema.exs -------------------------------------------------------------------------------- /test/schemas/evl_daemon.schema.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/schemas/evl_daemon.schema.exs -------------------------------------------------------------------------------- /test/schemas/mega_maid.schema.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/schemas/mega_maid.schema.exs -------------------------------------------------------------------------------- /test/schemas/merge_dep.schema.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/schemas/merge_dep.schema.exs -------------------------------------------------------------------------------- /test/schemas/merge_master.schema.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/schemas/merge_master.schema.exs -------------------------------------------------------------------------------- /test/schemas/merged_schema.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/schemas/merged_schema.exs -------------------------------------------------------------------------------- /test/schemas/readme_example.schema.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/schemas/readme_example.schema.exs -------------------------------------------------------------------------------- /test/schemas/small.schema.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/schemas/small.schema.exs -------------------------------------------------------------------------------- /test/schemas/test.schema.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/schemas/test.schema.exs -------------------------------------------------------------------------------- /test/schemas/utf8.schema.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/schemas/utf8.schema.exs -------------------------------------------------------------------------------- /test/test_helper.exs: -------------------------------------------------------------------------------- 1 | System.put_env("LAGER_INFO_FILE", "/var/log/error2.log") 2 | ExUnit.start 3 | -------------------------------------------------------------------------------- /test/utils_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitwalker/conform/HEAD/test/utils_test.exs --------------------------------------------------------------------------------