runeblog 0.1.29 → 0.1.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/default.rb +1 -1
- data/lib/helpers-repl.rb +2 -0
- data/lib/publish.rb +2 -2
- data/lib/repl.rb +6 -0
- data/lib/runeblog_version.rb +1 -1
- data/test/make_blog.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dfed05ef1c5eb502d0f6769c95388f1f5b1b01e222c49fa6f57fd63e85303e82
|
4
|
+
data.tar.gz: 298cb71465d7fd9e180846f907834d613823fad2483e24283c795ef9f0d74485
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56c51aab79afdd45313fc5f1e15940372bb2465409eba613b5e8f57115e61cea280efe888f18e85a0e8d9040a225868ac1e04c4d8a32a37b1c5c7f3d4ff583eb
|
7
|
+
data.tar.gz: 24be0b1d1a612de9a5c226cb4bd3256271437e975223309358a542c33e3dff34912dd197751691e38775f45010b77e088f8aea8367db2b8fe0c96a0c500ac778
|
data/lib/default.rb
CHANGED
data/lib/helpers-repl.rb
CHANGED
data/lib/publish.rb
CHANGED
@@ -39,7 +39,7 @@ debug "Failed!\n " if ! rc
|
|
39
39
|
def publish(files, assets=[])
|
40
40
|
dir = "#@docroot/#@path"
|
41
41
|
result = system!("ssh #@user@#@server -x mkdir -p #{dir}")
|
42
|
-
result = system!("ssh #@user@#@server -x mkdir -p #{dir}
|
42
|
+
result = system!("ssh #@user@#@server -x mkdir -p #{dir}/assets")
|
43
43
|
files.each do |file|
|
44
44
|
dest = "#@user@#@server:#{dir}"
|
45
45
|
file.gsub!(/\/\//, "/") # weird... :-/
|
@@ -49,7 +49,7 @@ debug "Failed!\n " if ! rc
|
|
49
49
|
result = system!(cmd) || puts("\n Could not copy #{file} to #{dest}")
|
50
50
|
end
|
51
51
|
unless assets.empty?
|
52
|
-
cmd = "scp #{assets.join(' ')} #@user@#@server:#{dir}
|
52
|
+
cmd = "scp #{assets.join(' ')} #@user@#@server:#{dir}/assets >/dev/null 2>/tmp/wtf2"
|
53
53
|
result = system!(cmd)
|
54
54
|
raise PublishError if !result
|
55
55
|
end
|
data/lib/repl.rb
CHANGED
@@ -277,6 +277,11 @@ module RuneBlog::REPL
|
|
277
277
|
[true, @out]
|
278
278
|
end
|
279
279
|
|
280
|
+
def cmd_ssh(arg, testing = false)
|
281
|
+
pub = @blog.view.publisher
|
282
|
+
system("ssh #{pub.user}@#{pub.server}")
|
283
|
+
end
|
284
|
+
|
280
285
|
def cmd_INVALID(arg, testing = false)
|
281
286
|
reset_output "\n Command '#{arg}' was not understood."
|
282
287
|
print fx("\n Command ", :bold)
|
@@ -321,6 +326,7 @@ module RuneBlog::REPL
|
|
321
326
|
relink Regenerate index for all views
|
322
327
|
rebuild Regenerate all posts and relink
|
323
328
|
publish Publish (current view)
|
329
|
+
ssh Login to remote server
|
324
330
|
EOS
|
325
331
|
output msg
|
326
332
|
msg.each_line do |line|
|
data/lib/runeblog_version.rb
CHANGED
data/test/make_blog.rb
CHANGED
@@ -37,6 +37,7 @@ x.create_view("alpha_view")
|
|
37
37
|
# Hack:
|
38
38
|
system("cp publish .blog/data_test/views/alpha_view/publish")
|
39
39
|
system("cp fakeimage.jpg .blog/data_test/assets/")
|
40
|
+
system("cp fakeimage.jpg .blog/data_test/views/alpha_view/assets/")
|
40
41
|
|
41
42
|
x.create_view("beta_view")
|
42
43
|
x.create_view("gamma_view")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: runeblog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.30
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hal Fulton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: livetext
|