class BibVagrant

Public Instance Methods

setup() click to toggle source
# File lib/bib/vagrant.rb, line 29
def setup
  config = Bib::Vagrant::Config.new
  fail "Your configuration is already created: #{config.get_path}" if config.has?
  config.get
  puts "Configuration created in #{config.get_path}!"
end
show() click to toggle source
# File lib/bib/vagrant.rb, line 19
def show
  config = get_wrapper
  puts "Your configuration is located in: #{config.get_path}"
  puts ''
  config.get.each do |config_key, config_value|
    puts "#{config_key}: #{config_value}"
  end
end
validate() click to toggle source
# File lib/bib/vagrant.rb, line 12
def validate
  config = get_wrapper
  vagrant_defaults = config.get
  config.validate!(vagrant_defaults)
end

Private Instance Methods

get_wrapper() click to toggle source
# File lib/bib/vagrant.rb, line 38
def get_wrapper
  config = Bib::Vagrant::Config.new
  fail 'No configuration, run `bib-vagrant setup`!' unless config.has?
  config
end