pave 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pave/version.rb +1 -1
- data/lib/pave.rb +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 336a915f47ac0ca22f465ccb1d076c249a67cf62
|
4
|
+
data.tar.gz: ee36a78dec4ac519c38abffa5ddbe729d5f934a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 180f04f27dc56ff0c5e1e817caabc816d32229bf313a2fef5433e5ee4a5ffd9f5dec4807f6f0ed04d72da7944aa95b1c2e016bc85adb36d3dd144ac0be13f9b6
|
7
|
+
data.tar.gz: 28acc1201c1ce7a76c3d356f64dd0cfdd91455b02972c3c75603c0513cc818e56f7b4944801ced3f9ee21de32002be2b3cfd7b5e19877205e05ac65c816a44c3
|
data/lib/pave/version.rb
CHANGED
data/lib/pave.rb
CHANGED
@@ -21,6 +21,7 @@ module Pave
|
|
21
21
|
def setup
|
22
22
|
clone_concrete5
|
23
23
|
set_up_app_folder
|
24
|
+
initialize_git
|
24
25
|
end
|
25
26
|
|
26
27
|
def clone_concrete5
|
@@ -41,6 +42,13 @@ module Pave
|
|
41
42
|
remove_extra_folders
|
42
43
|
end
|
43
44
|
|
45
|
+
def initialize_git
|
46
|
+
info "* Setting up git..."
|
47
|
+
sh "echo 'files/cache/*' > #{name}/.gitignore"
|
48
|
+
sh "echo 'files/tmp/*' >> #{name}/.gitignore"
|
49
|
+
sh "cd #{name} && git init && git add -A && git commit -m 'Initial'"
|
50
|
+
end
|
51
|
+
|
44
52
|
def symlink_folders
|
45
53
|
symlinked_folders.each do |folder|
|
46
54
|
sh "mv #{name}/#{folder} #{name}/app/#{folder}"
|