pave 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -0
- data/lib/pave.rb +10 -1
- data/lib/pave/version.rb +1 -1
- 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: a1efe1f4a7cd15d8abd9b0000021029ea6068603
|
4
|
+
data.tar.gz: 68292df8e9f81cc0e2f0e978ad63fd21357481a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bafbd805869df00d544095ac5213681c0aa6658cec67733c66146e68114cb7193daf1894fdba21e106f0696cfbc6658380a1a792ee19762ca11bce0b99de14b
|
7
|
+
data.tar.gz: 60eed40b304c6944fb77454b4f89c8d45fea6616e4a737bbe683e724baadb56e9934efc880a33dd6760a7465505ab272c03387e189f2a8f152cc4d02882ad653
|
data/README.md
CHANGED
@@ -12,6 +12,12 @@ Provides a set of command line tools for Concrete5.
|
|
12
12
|
|
13
13
|
$ pave new mywebsite
|
14
14
|
|
15
|
+
This will download Concrete 5.6.2.1, unzip it into the `mywebsite`
|
16
|
+
folder, remove extra folders, and build an app folder of commonly
|
17
|
+
used folders (symlinked into the root folder so Concrete5 can find them).
|
18
|
+
|
19
|
+
It also initializes a Git repo and adds the first ("Initial") commit.
|
20
|
+
|
15
21
|
## Contributing
|
16
22
|
|
17
23
|
0. Create an issue explaining what you'd like to do and get feedback
|
data/lib/pave.rb
CHANGED
@@ -22,11 +22,12 @@ module Pave
|
|
22
22
|
clone_concrete5
|
23
23
|
set_up_app_folder
|
24
24
|
initialize_git
|
25
|
+
create_virtual_host
|
25
26
|
end
|
26
27
|
|
27
28
|
def clone_concrete5
|
28
29
|
info "* Downloading Concrete5 version 5.6.2.1..."
|
29
|
-
sh "curl http://www.concrete5.org/download_file/-/view/58379/8497 -o c5.zip"
|
30
|
+
sh "curl http://www.concrete5.org/download_file/-/view/58379/8497 -o c5.zip > /dev/null"
|
30
31
|
info "* Download complete. Unzipping..."
|
31
32
|
sh "unzip c5.zip"
|
32
33
|
sh "rm c5.zip"
|
@@ -49,6 +50,14 @@ module Pave
|
|
49
50
|
sh "cd #{name} && git init && git add -A && git commit -m 'Initial'"
|
50
51
|
end
|
51
52
|
|
53
|
+
def create_virtual_host
|
54
|
+
# /private/etc/apache2/extra/httpd-vhosts.conf
|
55
|
+
# <VirtualHost *:80>
|
56
|
+
# ServerName "mywebsite.site"
|
57
|
+
# DocumentRoot "<pwd>/mywebsite.dev"
|
58
|
+
# </VirtualHost>
|
59
|
+
end
|
60
|
+
|
52
61
|
def symlink_folders
|
53
62
|
symlinked_folders.each do |folder|
|
54
63
|
sh "mv #{name}/#{folder} #{name}/app/#{folder}"
|
data/lib/pave/version.rb
CHANGED