rack-blogengine 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/bin/rack-blogengine +5 -3
- data/lib/rack/blogengine/command_line_interface.rb +2 -0
- data/lib/rack/blogengine/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: 994201fca1418d168755718f293af47d15134398
|
4
|
+
data.tar.gz: ef40b2d24cbcf80603b1f7c856f7eb51be5c700a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af21db7991922b36c1b1408918cedb0eb8bd61a2a2af8d6046ce871b39c5b4bd6356a9a15d6bcf4dc4cef838a86b972dabcd4778c0a6710dfc89bdc013a9a449
|
7
|
+
data.tar.gz: 3af9f49b2f7ff3c44bb1ee46d58fa2f3ada7e469609940ba65c35369b3f7a59173a311602c2d3c357c2f79426135f8c54192fdbdbde8dd51191dd7deb912e652
|
data/README.md
CHANGED
@@ -18,13 +18,13 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
|
21
|
+
`rack-blogengine generate <folder>` will create your Folder skeleton
|
22
22
|
|
23
23
|
### Structure
|
24
24
|
|
25
|
-
`targetfolder/layout` - save your layout.html
|
25
|
+
`targetfolder/layout` - save your layout.html in this folder
|
26
26
|
|
27
|
-
`targetfolder/assets` - your assets (images, js etc) will be served from this folder (http://pathtoapp.tld/
|
27
|
+
`targetfolder/assets` - your assets (images, js, css etc) will be served from this folder (http://pathtoapp.tld/assets)
|
28
28
|
|
29
29
|
`targetfolder/test.content` - your available blog entries matches to the .content files, each .content file is a blog entry
|
30
30
|
|
data/bin/rack-blogengine
CHANGED
@@ -1,8 +1,11 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
require 'rack/blogengine/command_line_interface'
|
3
3
|
|
4
|
-
|
5
|
-
command = ARGV[0].to_sym
|
4
|
+
if ARGV[0]
|
5
|
+
command = ARGV[0].to_sym
|
6
|
+
else
|
7
|
+
command = "".to_sym
|
8
|
+
end
|
6
9
|
|
7
10
|
|
8
11
|
target = ARGV[1]
|
@@ -11,7 +14,6 @@ target = "" if !ARGV[1]
|
|
11
14
|
|
12
15
|
cli = Rack::Blogengine::CommandLineInterface.new
|
13
16
|
methods = Rack::Blogengine::CommandLineInterface.instance_methods(false)
|
14
|
-
|
15
17
|
begin
|
16
18
|
cli.send(command, target)
|
17
19
|
rescue TypeError
|
@@ -29,6 +29,8 @@ module Rack
|
|
29
29
|
|
30
30
|
# TODO write generate method to generate blog skeleton (assets, layout etc)
|
31
31
|
def generate(folder)
|
32
|
+
puts "Generating folder skeleton"
|
33
|
+
system("mkdir #{folder} && mkdir #{folder}/assets && mkdir #{folder}/assets/layout && mkdir #{folder}/assets/js && mkdir #{folder}/assets/style && mkdir #{folder}/assets/images")
|
32
34
|
end
|
33
35
|
end
|
34
36
|
end
|