Class: JIJI::Migration::Migrator1_0_3
- Inherits:
-
Object
- Object
- JIJI::Migration::Migrator1_0_3
- Defined in:
- lib/jiji/migration/migrator1_0_3.rb
Overview
1.0.0 → 1.0.3
Instance Method Summary collapse
Instance Method Details
#migrate(registry) ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/jiji/migration/migrator1_0_3.rb', line 12 def migrate( registry ) # outputのプロパティキーを変換 Dir.glob( "#{registry.process_dir}/*/out/**/meta.yaml").each {|| props = YAML.load_file props = props.inject({}) {|r,p| r[p[0].to_sym] = p[1]; r } FileLock.new( ).writelock { |f| f.write( YAML.dump( props ) ) } } end |