2012-04-20 2 views
6

우리는 프로젝트의 종속성을 끌어 내기 위해 보강 철근을 사용하고 있습니다. 그 중 많은 부분이 github에서 왔습니다.보강 철근 deps 구성의 요소 의미

{deps, [ 
     {cowboy, "", {git, "git://github.com/extend/cowboy.git", {branch, "master"}}} 
     ]}. 

내가 그럭저럭 충분히 이해하고, 내가 시행 착오 (예를 들어, 태그 및 변경 집합이 아닌 지점을 지정하는 방법),하지만 내 구글에 의해 몇 가지를 배운 : 우리의 설정은 뭔가처럼 보인다 -fu는 어떤 옵션이 사용 가능하거나 무엇을하는지에 대한 포괄적 인 문서를 찾을 수 없습니다.

두 번째 값의 목적에 대해 궁금해합니다. (종종 빈 문자열이지만 버전 번호와 와일드 카드를 종종 볼 수 있습니다.)하지만 소스 제어 옵션에 대한 정보 나 일반적으로 문서가 도움이 될 것입니다. .

답변

7

현재 철근의 전체 설명서를 찾을 수 있습니다

https://github.com/basho/rebar/blob/master/rebar.config.sample

읽기 :

https://github.com/basho/rebar/wiki

가능한 옵션의 대부분을 보여주는 자세한 rebar.config 샘플에서 볼 수 있습니다 deps 섹션 :

%% What dependencies we have, dependencies can be of 3 forms, an application 
%% name as an atom, eg. mochiweb, a name and a version (from the .app file), or 
%% an application name, a version and the SCM details on how to fetch it (SCM 
%% type, location and revision). Rebar currently supports git, hg, bzr and svn. 
{deps, [application_name, 
     {application_name, "1.0.*"}, 
     {application_name, "1.0.*", 
     {git, "git://github.com/basho/rebar.git", {branch, "master"}}}, 
     {application_name, "1.0.*", 
     {git, "git://github.com/basho/rebar.git", {branch, "master"}}, 
     [{alt_url, "https://github.com/basho/rebar.git"}]}]}. 

위에서 알 수 있듯이, 지적한 특정 매개 변수는 Erlang 응용 프로그램의 버전과 관련이 있습니다 (OTP 응용 프로그램 용). 버전은 Erlang Application files에 표시됩니다.

+0

나는 위키를 보았지만 deps에 대해서는별로 알지 못했다. 나는 rebar.config.sample을 보지 못했습니다. 감사. –