solokit 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/CHANGELOG +5 -0
  2. data/lib/solokit/version.rb +1 -1
  3. data/lib/ssh.rb +4 -0
  4. metadata +4 -4
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ 0.1.5
2
+
3
+ Added "reverse_rsync" on the SSH class so that you can download files from
4
+ servers.
5
+
1
6
  0.1.4
2
7
 
3
8
  Using different temp folders for each server so that you can run provisoning in parallel.
@@ -1,3 +1,3 @@
1
1
  module Solokit
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
data/lib/ssh.rb CHANGED
@@ -12,6 +12,10 @@ module Solokit
12
12
  run_command("rsync -e 'ssh #{ssh_opts}' -az #{source} #{@user}@#{@ip}:#{target} #{supress_output(quiet)}")
13
13
  end
14
14
 
15
+ def reverse_rsync(source, target, quiet = false)
16
+ run_command("rsync -e 'ssh #{ssh_opts}' -az #{@user}@#{@ip}:#{source} #{target} #{supress_output(quiet)}")
17
+ end
18
+
15
19
  private
16
20
 
17
21
  def supress_output(hide_stdout)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solokit
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 4
10
- version: 0.1.4
9
+ - 5
10
+ version: 0.1.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Joakim Kolsj\xC3\xB6"
@@ -139,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
139
  requirements: []
140
140
 
141
141
  rubyforge_project:
142
- rubygems_version: 1.6.2
142
+ rubygems_version: 1.5.3
143
143
  signing_key:
144
144
  specification_version: 3
145
145
  summary: A toolkit for provisioning (ubuntu-)servers using chef-solo.