solutus 0.0.7 → 0.0.8
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/lib/solutus.rb +9 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3dd19d93e148611ac8ed6dac9a5b16fb563d4fabd604301db30890ccf472b575
|
4
|
+
data.tar.gz: 9a820f57ad89b5c8a816dcba7daf4e8516af304a958cb9f84c8fbb37e3ca6443
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eadc38cd4bcb1d80d1c66d68b42bc4dffc68ea127484c8f9a3aac777502590069e19a792b38f2ea87376c205e5ed628b3c6b4861e4c37820cc31c523a489e62b
|
7
|
+
data.tar.gz: f1ea64d0502301fbbdb11e0e47de087501b9037230b299baaa6c591eda8dd1b2255cc1db7211a6e180d74fcfa849c71fefdbcaa85a396e9d4b2faec475066b83
|
data/lib/solutus.rb
CHANGED
@@ -239,7 +239,6 @@ class Solutus
|
|
239
239
|
if args.length >= 1
|
240
240
|
if args[0] == "deploy"
|
241
241
|
deploy
|
242
|
-
return
|
243
242
|
elsif args[0] == "start"
|
244
243
|
build
|
245
244
|
serve
|
@@ -249,6 +248,9 @@ class Solutus
|
|
249
248
|
return
|
250
249
|
elsif args[0] == "build"
|
251
250
|
build
|
251
|
+
elsif args[0] == "publish"
|
252
|
+
build
|
253
|
+
deploy
|
252
254
|
else
|
253
255
|
if args.length >= 2
|
254
256
|
if args[0] == "create"
|
@@ -408,6 +410,11 @@ class Solutus
|
|
408
410
|
f.close
|
409
411
|
puts "Created blog archive @ #{path}"
|
410
412
|
|
413
|
+
if settings_data["mirror"]
|
414
|
+
dir_path = settings_data["mirror"]
|
415
|
+
FileUtils.rm_rf("#{dir_path}/.", secure: true)
|
416
|
+
FileUtils.copy_entry(SITE_PATH, dir_path)
|
417
|
+
end
|
411
418
|
end
|
412
419
|
|
413
420
|
def self.new_page(title)
|
@@ -563,7 +570,7 @@ HERE
|
|
563
570
|
|
564
571
|
styles_file = <<HERE
|
565
572
|
body {
|
566
|
-
background-color:
|
573
|
+
background-color: #EEEEEE;
|
567
574
|
}
|
568
575
|
HERE
|
569
576
|
|