dock0 0.0.17 → 0.0.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/dock0.gemspec +1 -1
  3. data/lib/dock0.rb +5 -7
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5c083550094c02b5b30fc63458461b11bb415d2c
4
- data.tar.gz: e131c5a8fa4924140b77c02dc852013e1966b77b
3
+ metadata.gz: 0d86c522c5bf668bd0cd71dca01380f1158577b1
4
+ data.tar.gz: 7e705f72379947f9616ecce7d6d53fda1f1f4c2b
5
5
  SHA512:
6
- metadata.gz: ced75630035ce51352240828cd101b0714f2b1995a905626d363cb88aa2f0b1aab35f7861a97d7af2d0b66b58437212e1f4c9b0e4a4eb969909e96dd87c59214
7
- data.tar.gz: 79c94e5798b095e8094dcc4f2bdc01a01b5d6bcc4ca6a267afd1b12a7dc509a9153c869b752297f1fbce9abd5e23c8dc477f300aed4e2f7430d39f30f13db273
6
+ metadata.gz: fb5a744af7e73ed0387f285f0742cdb40f0e83020edced95f41aec40a7e5da70ccef6673eec2da4f2c090a2f7bedd58e0664758d56a60a5c5c743ee2dadc94f5
7
+ data.tar.gz: 318e8c5493a2987684eb1ad00e3b0db6fc8fc538955f58de0b05524ecba1c4d33607b165f44e34911da2c011d1b8055d60980b3599c9a8753bb0f5077ebb953c
data/dock0.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'dock0'
3
- s.version = '0.0.17'
3
+ s.version = '0.0.18'
4
4
  s.date = Time.now.strftime("%Y-%m-%d")
5
5
 
6
6
  s.summary = 'Builds a read-only Arch host for Docker'
data/lib/dock0.rb CHANGED
@@ -96,16 +96,14 @@ module Dock0
96
96
  end
97
97
  end
98
98
 
99
+ def run_script(script)
100
+ Dir.chdir('.') { instance_eval File.read(script), script, 0 }
101
+ end
102
+
99
103
  def run_scripts
100
- runner = proc do |s|
101
- Dir.chdir('.') do
102
- instance_eval "def #{s}\n#{File.read(s)}\nend", s, 0
103
- send(s)
104
- end
105
- end
106
104
  Dir.glob(@config['paths']['scripts'] + '/*.rb').sort.each do |script|
107
105
  puts "Running #{script}"
108
- runner.call(script)
106
+ run_script script
109
107
  end
110
108
  end
111
109
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dock0
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Aker