gemtronics 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/gemtronics +6 -2
  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('system_gemtronics.rb', 'w') {|f| f.write out}
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemtronics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - markbates