ruby - How to Locate Target Directory -



ruby - How to Locate Target Directory -

does buildr have pre-defined variables, capistrano, directories 'target', 'reports', etc? if not, rather hard-coding location of these directories, how else can locate/determine these paths?

the end goal create task on-the-fly create file , insert target directory.

buildr defines symbolic names special directories. path_to (aka _) method accepts these symbolic names , automatically translates them paths current layout. e.g.,

define 'foo' puts _(:target, :main, :classes) # => /some/root/foo/target/classes puts path_to(:source, :main, :java) # => /some/root/foo/src/main/java end

as antoine noted in reply answer, there's list of these symbolic names in documentation.

ruby buildr

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -