Mercurial > hg > Members > atton > pmux
changeset 5:8ebb2d954968
Add debugger.yml
author | Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 21 Jul 2014 19:38:24 +0900 |
parents | 73ee80dc9415 |
children | 4d8f8b2bb7a9 |
files | lib/pmuxinator/assets/debugger.yml lib/pmuxinator/config.rb |
diffstat | 2 files changed, 19 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/pmuxinator/assets/debugger.yml Mon Jul 21 19:38:24 2014 +0900 @@ -0,0 +1,16 @@ +# lib/pmuxinator/assets/debugger.yml + +name: debugger +root: ~/Desktop +pre: | + echo $ mkdir .parallel_debugger + echo $ hg clone . .parallel_debugger/left + echo $ hg clone . .parallel_debugger/right + +windows: + - main: + layout: main-horizontal + panes: + - echo hg update -r 100 + - echo hg update -r 50 + synchironize: true
--- a/lib/pmuxinator/config.rb Mon Jul 21 19:26:48 2014 +0900 +++ b/lib/pmuxinator/config.rb Mon Jul 21 19:38:24 2014 +0900 @@ -43,7 +43,9 @@ end def project(name) - projects = Dir.glob("#{root}/**/*.yml").push("#{File.dirname(__FILE__)}/assets/debugger.yml") + return "#{File.dirname(__FILE__)}/assets/debugger.yml" if name == 'debugger' + + projects = Dir.glob("#{root}/**/*.yml") project_file = projects.detect { |project| project =~ /^#{name}.yml$/ } project_file || "#{root}/#{name}.yml" end