Skip to content

Commit

Permalink
Allows team:fork_skeletor task to work with config.yml default.
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Connolly committed May 7, 2013
1 parent c5563da commit 40fe300
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/tasks/team.rake
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,12 @@ namespace :team do
Example: myplanetdigital/newproject"
task :fork_skeletor, :github_repo do |t, args|
Rake::Task["load_config"].invoke
Rake::Task["team:github_auth"].invoke
repo_url = @config['repo']
github_org = /.*[:\/](.+)\/(.+)\.git/.match(repo_url)[1]
github_repo = /.*[:\/](.+)\/(.+)\.git/.match(repo_url)[2]
args.with_defaults(:github_repo => "#{github_org}/#{github_repo}")

options = {}
options[:private] = true
Expand Down

0 comments on commit 40fe300

Please sign in to comment.