bcome 1.3.3 → 1.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/objects/bcome/version.rb +1 -1
- data/lib/objects/modules/workspace_menu.rb +6 -0
- data/lib/objects/node/base.rb +3 -3
- data/lib/objects/node/server/base.rb +2 -2
- data/lib/objects/ssh/driver.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: 4e26f496e3b1756df2ee8a288a02c8ca9746f975
|
4
|
+
data.tar.gz: f241fbbcc02373d2071b846a1082a97eb5375a78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e1d58cf79db6fa814f733963ac851c4e16bce7f0f22ee6dc10139ee1164b99d84f0eae7253a01cdc8912866fd9b032f3e34fddd0d3ebf493f6d55b2c0446220
|
7
|
+
data.tar.gz: 6da1f5d5bda08ba8a17099a5e3f1848fd01934ed27f21bad1d7dbeed993368766ee7fd659b21ec4927993d89d975c29ee75dfdeb587b63ababef2328bb342559
|
@@ -89,6 +89,12 @@ module Bcome::WorkspaceMenu
|
|
89
89
|
console_only: false,
|
90
90
|
terminal_usage: "put 'local/path' 'remote/path'"
|
91
91
|
},
|
92
|
+
put_str: {
|
93
|
+
description: 'Write a file /to/remote/path from a string',
|
94
|
+
usage: 'put_str',
|
95
|
+
console_only: false,
|
96
|
+
terminal_usage: "put_str '<file contents>', 'remote/path'"
|
97
|
+
},
|
92
98
|
rsync: {
|
93
99
|
description: 'upload a file or directory using rsync (faster)',
|
94
100
|
usage: "rsync 'local/path','remote/path'",
|
data/lib/objects/node/base.rb
CHANGED
@@ -50,7 +50,7 @@ module Bcome::Node
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def enabled_menu_items
|
53
|
-
[:ls, :lsa, :workon, :enable, :disable, :enable!, :disable!, :run, :tree, :ping, :put, :rsync, :cd, :meta, :pack_metadata, :unpack_metadata, :registry, :interactive, :execute_script]
|
53
|
+
[:ls, :lsa, :workon, :enable, :disable, :enable!, :disable!, :run, :tree, :ping, :put, :put_str, :rsync, :cd, :meta, :pack_metadata, :unpack_metadata, :registry, :interactive, :execute_script]
|
54
54
|
end
|
55
55
|
|
56
56
|
def has_proxy?
|
@@ -87,9 +87,9 @@ module Bcome::Node
|
|
87
87
|
return
|
88
88
|
end
|
89
89
|
|
90
|
-
def
|
90
|
+
def put_str(string, remote_path)
|
91
91
|
resources.active.each do |resource|
|
92
|
-
resource.
|
92
|
+
resource.put_str(string, remote_path)
|
93
93
|
end
|
94
94
|
return
|
95
95
|
end
|
@@ -153,8 +153,8 @@ module Bcome::Node::Server
|
|
153
153
|
ssh_driver.put(local_path, remote_path)
|
154
154
|
end
|
155
155
|
|
156
|
-
def
|
157
|
-
ssh_driver.
|
156
|
+
def put_str(string, remote_path)
|
157
|
+
ssh_driver.put_str(string, remote_path)
|
158
158
|
end
|
159
159
|
|
160
160
|
def get(remote_path, local_path)
|
data/lib/objects/ssh/driver.rb
CHANGED
@@ -231,7 +231,7 @@ module Bcome::Ssh
|
|
231
231
|
nil
|
232
232
|
end
|
233
233
|
|
234
|
-
def
|
234
|
+
def put_str(string, remote_path)
|
235
235
|
raise Bcome::Exception::MissingParamsForScp, "'put' requires a string and a remote_path" if string.to_s.empty? || remote_path.to_s.empty?
|
236
236
|
puts "\n(#{@context_node.namespace})\s".namespace + "Uploading from string to #{remote_path}\n".informational
|
237
237
|
|