Skip to content
This repository has been archived by the owner on Dec 22, 2018. It is now read-only.

Commit

Permalink
Give the README a Markdown extension. Commit the repo once it's been …
Browse files Browse the repository at this point in the history
…initialised. Output where the repo is at.
  • Loading branch information
auxesis committed Feb 27, 2011
1 parent b4c3a5a commit 8def3ef
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions lib/rump.rb
Expand Up @@ -136,7 +136,7 @@ def scaffold(project)
FileUtils.mkdir_p(directory)
end

File.open(@root.join(project, 'README'), 'w') do |f|
File.open(@root.join(project, 'README.md'), 'w') do |f|
f << <<-README.gsub(/^ {8}/, '')
#{project} manifests
#{"=" * project.size}==========
Expand Down Expand Up @@ -184,9 +184,15 @@ def init(project)
template_path = @install_root.join('generators', 'git')

Dir.chdir(repo_path) do
command = "git init --template=#{template_path}"
system(command)
commands = [ "git init --quiet --template=#{template_path}",
"git add .",
"git commit --quiet -am 'Initial commit.'" ]
commands.each do |command|
system(command)
end
end

info "Your new Rump project has been initialised in #{repo_path}"
end

desc "whoami [rfc2822-address]", "set the current commit author"
Expand Down

0 comments on commit 8def3ef

Please sign in to comment.