I am stuck on this one. I wanted to store some data in either INI file or
SQLite3 database. I would query these, then build a Ruby hash.
Unfortunately, I get errors
require 'inifile'
settings = IniFile.load(CONFIGFILE)
*Message: LoadError: cannot load such file -- inifile*
require 'sqlite3'
File.delete(CONFIGFILE_DB) if File.exist?(CONFIGFILE_DB)
db = SQLite3::Database.new(CONFIGFILE_DB)
db = execute( ".read #{CONFIGFILE_SQL}")
db.execute( QUERY_HOSTS ) do |hostname, ipaddr|
settings['hosts'][hostname] = ipaddr
end
*Message: LoadError: cannot load such file -- sqlite3*
So, how can I get these gems to be available when my Vagrantfile is
included.
--
This mailing list is governed under the HashiCorp Community Guidelines -
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of
those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vagrant-up/9b5c88e1-d635-4bce-b622-942f35a34fe7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.