CloudyScripts 1.5.19 → 1.5.20

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ require 'rake/testtask'
12
12
 
13
13
  spec = Gem::Specification.new do |s|
14
14
  s.name = 'CloudyScripts'
15
- s.version = '1.5.19'
15
+ s.version = '1.5.20'
16
16
  s.has_rdoc = true
17
17
  s.extra_rdoc_files = ['README.rdoc', 'LICENSE']
18
18
  s.summary = 'Scripts to facilitate programming for infrastructure clouds.'
@@ -228,9 +228,9 @@ class RemoteCommandHandler
228
228
  def remote_exec_helper(exec_string, stdout = [], stderr = [], debug = false)
229
229
  result = true
230
230
  the_channel = @ssh_session.open_channel do |channel|
231
- channel.exec(exec_string) do |ch, success|
231
+ channel.exec("sudo #{exec_string}") do |ch, success|
232
232
  if success
233
- @logger.debug("RemoteCommandHandler: starts executing #{exec_string}") if debug
233
+ @logger.debug("RemoteCommandHandler: starts executing sudo #{exec_string}") if debug
234
234
  ch.on_data() do |ch, data|
235
235
  stdout << data unless data == nil || stdout == nil
236
236
  end
@@ -38,7 +38,7 @@ module StateTransitionHelper
38
38
  # Returns:
39
39
  # * OS of the connected machine
40
40
  def connect(dns_name, user_name, ssh_keyfile = nil, ssh_keydata = nil)
41
- post_message("connecting to #{dns_name}...")
41
+ post_message("connecting '#{user_name}' to #{dns_name}...")
42
42
  connected = false
43
43
  last_connection_problem = ""
44
44
  remaining_trials = 5
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 5
8
- - 19
9
- version: 1.5.19
8
+ - 20
9
+ version: 1.5.20
10
10
  platform: ruby
11
11
  authors:
12
12
  - Matthias Jung
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-10-13 00:00:00 +02:00
17
+ date: 2010-11-10 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency