depwhack 0.0.2 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +2 -0
- data/bin/depwhack +7 -2
- metadata +1 -1
data/README.textile
CHANGED
data/bin/depwhack
CHANGED
@@ -13,14 +13,19 @@ end
|
|
13
13
|
def red(text); colorize(text, "#{27.chr}[31m"); end
|
14
14
|
def green(text); colorize(text, "#{27.chr}[32m"); end
|
15
15
|
|
16
|
+
begin
|
17
|
+
gems = eval `#{remote_command} "#{gem_list_code}"`
|
18
|
+
rescue
|
19
|
+
puts "[#{red 'ERROR'}] Please run this command from a Rails project's path."
|
20
|
+
exit 1
|
21
|
+
end
|
22
|
+
|
16
23
|
gem_list_code =<<RUBY
|
17
24
|
at_exit do
|
18
25
|
p Gem.loaded_specs.collect { |g| [g.first, g[1].version.to_s] }
|
19
26
|
end
|
20
27
|
RUBY
|
21
28
|
|
22
|
-
gems = eval `#{remote_command} "#{gem_list_code}"`
|
23
|
-
|
24
29
|
gems.each do |name, version|
|
25
30
|
output = %x{#{ssh_bin} #{server} '#{gem_bin} search #{name}'}
|
26
31
|
|