cloudler 0.1.2 → 0.1.4

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.
Files changed (2) hide show
  1. data/lib/cloudler.rb +4 -6
  2. metadata +2 -2
data/lib/cloudler.rb CHANGED
@@ -3,7 +3,7 @@ require 'net/scp'
3
3
 
4
4
  class Cloudler
5
5
 
6
- VERSION = '0.1.2'
6
+ VERSION = '0.1.4'
7
7
 
8
8
  def self.hosts= hosts
9
9
  @hosts = hosts
@@ -54,13 +54,11 @@ class Cloudler
54
54
  ssh.exec! "rm -rf #{@path}"
55
55
  ssh.exec! "mkdir #{@path}"
56
56
  if @files.length > 0
57
- @files.each do |file|
58
- ssh.scp.upload(file, "#{@path}", :recursive => true)
59
- end
57
+ ssh.scp.upload!(@files.join(' '), @path, :recursive => true)
60
58
  else
61
- ssh.scp.upload!('.', "#{@path}", :recursive => true)
59
+ ssh.scp.upload!('.', @path, :recursive => true)
62
60
  end
63
-
61
+
64
62
  puts "Files uploaded."
65
63
 
66
64
  if @gems.length > 0
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: cloudler
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.2
5
+ version: 0.1.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Bruce Spang
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-02-22 00:00:00 -05:00
13
+ date: 2011-02-23 00:00:00 -05:00
14
14
  default_executable: cloud
15
15
  dependencies: []
16
16