gemtronics 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/gemtronics +6 -2
- metadata +1 -1
data/bin/gemtronics
CHANGED
@@ -26,6 +26,10 @@ when 'install'
|
|
26
26
|
path = ARGV[2] || File.join('config', 'gemtronics.rb')
|
27
27
|
Gemtronics.load(path)
|
28
28
|
Gemtronics.install_gems(ARGV[1] || 'everything!')
|
29
|
+
when 'restore'
|
30
|
+
path = ARGV[1] || 'system_gemtronics_dump.rb'
|
31
|
+
Gemtronics.load(path)
|
32
|
+
Gemtronics.install_gems('everything!')
|
29
33
|
when 'dump'
|
30
34
|
gem_list = `gem list`
|
31
35
|
|
@@ -50,13 +54,13 @@ when 'dump'
|
|
50
54
|
groups.each_with_index do |gems, i|
|
51
55
|
out << "group(:group_#{i}) do |g|\n"
|
52
56
|
gems.each do |name, gemdef|
|
53
|
-
out << " g.add('#{name}', :version => #{gemdef[:version]})\n"
|
57
|
+
out << " g.add('#{name}', :version => '#{gemdef[:version]}')\n"
|
54
58
|
end
|
55
59
|
out << "end\n"
|
56
60
|
end
|
57
61
|
|
58
62
|
puts out
|
59
|
-
File.open('
|
63
|
+
File.open('system_gemtronics_dump.rb', 'w') {|f| f.write out}
|
60
64
|
when 'generate'
|
61
65
|
path = ARGV[1] || 'config'
|
62
66
|
FileUtils.mkdir_p(path)
|