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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0e9ca596abfb2b5646f402dc387d0f5a2e4538d3
4
- data.tar.gz: 360040b6babef02752da688aa45a9711879477fb
3
+ metadata.gz: 4e26f496e3b1756df2ee8a288a02c8ca9746f975
4
+ data.tar.gz: f241fbbcc02373d2071b846a1082a97eb5375a78
5
5
  SHA512:
6
- metadata.gz: cde41dc06bb6edfd02a30d5b497e77f9b0e8a723d57f58f8f982533e5e1a36c994374373b1cf777b6dbbfb2c05e35497130b6ea3dae20e0ed7c6a43de4cfcfa9
7
- data.tar.gz: bfd7821e8a7a8085df798c3440aabf72fa351f10501c21a96044e200293411188e45ce3751765eac9cbbef8f2267fe8f6c9c5249608685dc2db0a134a7b78c7b
6
+ metadata.gz: 0e1d58cf79db6fa814f733963ac851c4e16bce7f0f22ee6dc10139ee1164b99d84f0eae7253a01cdc8912866fd9b032f3e34fddd0d3ebf493f6d55b2c0446220
7
+ data.tar.gz: 6da1f5d5bda08ba8a17099a5e3f1848fd01934ed27f21bad1d7dbeed993368766ee7fd659b21ec4927993d89d975c29ee75dfdeb587b63ababef2328bb342559
@@ -1,3 +1,3 @@
1
1
  module Bcome
2
- VERSION = '1.3.2'.freeze
2
+ VERSION = '1.3.4'.freeze
3
3
  end
@@ -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'",
@@ -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 put_from_string(string, remote_path)
90
+ def put_str(string, remote_path)
91
91
  resources.active.each do |resource|
92
- resource.put_from_string(local_path, remote_path)
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 put_from_string(string, remote_path)
157
- ssh_driver.put_from_string(string, remote_path)
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)
@@ -231,7 +231,7 @@ module Bcome::Ssh
231
231
  nil
232
232
  end
233
233
 
234
- def put_from_string(string, remote_path)
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bcome
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guillaume Roderick (Webzakimbo)