Sha256: 83ce0cf3d6b42f88b2ec109fa49df6410d8116be209f3e8d27221f7f985ac8af

Contents?: true

Size: 819 Bytes

Versions: 1

Compression:

Stored size: 819 Bytes

Contents

# Application template recipe for the rails_apps_composer. Change the recipe here:
# https://github.com/RailsApps/rails_apps_composer/blob/master/recipes/git.rb

## Git
say_wizard "initialize git"
prefs[:git] = true unless prefs.has_key? :git
if prefer :git, true
  copy_from 'https://raw.githubusercontent.com/adrianescat/redmint_composer/master/data/gitignore.txt', '.gitignore'
  git :init
  git :add => '-A'
  git :commit => '-qm "redmint_composer: initial commit"'
else
  stage_three do
    say_wizard "recipe stage three"
    say_wizard "removing .gitignore and .gitkeep files"
    git_files = Dir[File.join('**','.gitkeep')] + Dir[File.join('**','.gitignore')]
    File.unlink git_files
  end
end

__END__

name: git
description: "Initialize git for your application."
author: RailsApps

category: configuration

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
redmint_composer-2.3 recipes/git.rb