Class: Bricks::Git

Inherits:
Base
  • Object
show all
Defined in:
lib/active_admin/generator/bricks/git.rb

Constant Summary

Constants inherited from Base

Base::BRICKS

Instance Attribute Summary

Attributes inherited from Base

#context

Instance Method Summary collapse

Methods inherited from Base

#bricks, #hook, #initialize, #require_bricks, #run!

Constructor Details

This class inherits a constructor from Base

Instance Method Details

#before_bundleObject



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/active_admin/generator/bricks/git.rb', line 3

def before_bundle
  git :init

  append_file ".gitignore", <<-END
  *.swp
  .DS_Store
  .sass-cache
  root.dir
  .rake_tasks~
  db/schema.rb
  public/system
  END

  commit_all "First commit"
end