1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2024-11-27 07:33:05 +00:00

fix for new syntax

This commit is contained in:
nishiki 2014-08-31 12:42:26 +02:00
parent ce05c53c20
commit 6c09c7f1b3

View file

@ -89,7 +89,9 @@ module MPW
'sync_user' => sync_user, 'sync_user' => sync_user,
'sync_pwd' => sync_pwd, 'sync_pwd' => sync_pwd,
'sync_path' => sync_path, 'sync_path' => sync_path,
'last_update' => 0 }} 'last_update' => 0
}
}
Dir.mkdir("#{@config_dir}/conf", 700) Dir.mkdir("#{@config_dir}/conf", 700)
Dir.mkdir("#{@config_dir}/db", 700) Dir.mkdir("#{@config_dir}/db", 700)
@ -199,7 +201,7 @@ module MPW
next next
end end
@error_msg = I18n.t('error.config.no_key_public', :key => k) @error_msg = I18n.t('error.config.no_key_public', key: k)
return false return false
end end
end end
@ -221,7 +223,9 @@ module MPW
'sync_user' => @sync_user, 'sync_user' => @sync_user,
'sync_pwd' => @sync_pwd, 'sync_pwd' => @sync_pwd,
'sync_path' => @sync_path, 'sync_path' => @sync_path,
'last_update' => Time.now.to_i }} 'last_update' => Time.now.to_i
}
}
File.open(@file_config, 'w') do |file| File.open(@file_config, 'w') do |file|
file << config.to_yaml file << config.to_yaml