cloudler 0.1.4 → 0.1.5
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.
- data/lib/cloudler.rb +9 -9
- metadata +1 -1
data/lib/cloudler.rb
CHANGED
@@ -3,7 +3,7 @@ require 'net/scp'
|
|
3
3
|
|
4
4
|
class Cloudler
|
5
5
|
|
6
|
-
VERSION = '0.1.
|
6
|
+
VERSION = '0.1.5'
|
7
7
|
|
8
8
|
def self.hosts= hosts
|
9
9
|
@hosts = hosts
|
@@ -61,14 +61,6 @@ class Cloudler
|
|
61
61
|
|
62
62
|
puts "Files uploaded."
|
63
63
|
|
64
|
-
if @gems.length > 0
|
65
|
-
puts "Installing gems..."
|
66
|
-
ssh.exec! "gem install #{@gems.join ' '}" do |ch, stream, data|
|
67
|
-
puts data
|
68
|
-
end
|
69
|
-
puts "Gems installed"
|
70
|
-
end
|
71
|
-
|
72
64
|
if @precommands.length > 0
|
73
65
|
puts "Executing pre-commands"
|
74
66
|
@precommands.each do |command|
|
@@ -79,6 +71,14 @@ class Cloudler
|
|
79
71
|
puts "Pre-commands executed."
|
80
72
|
end
|
81
73
|
|
74
|
+
if @gems.length > 0
|
75
|
+
puts "Installing gems..."
|
76
|
+
ssh.exec! "gem install #{@gems.join ' '}" do |ch, stream, data|
|
77
|
+
puts data
|
78
|
+
end
|
79
|
+
puts "Gems installed"
|
80
|
+
end
|
81
|
+
|
82
82
|
puts "Executing command..."
|
83
83
|
ssh.exec! "cd #{@path} && #{@command}" do |ch, stream, data|
|
84
84
|
puts data
|