lib/vocker/config.rb in vocker-0.3.3 vs lib/vocker/config.rb in vocker-0.4.0
- old
+ new
@@ -2,14 +2,16 @@
module VagrantPlugins
module Vocker
class Config < Vagrant.plugin("2", :config)
attr_reader :images, :containers
+ attr_accessor :version
def initialize
@images = Set.new
@containers = Hash.new
+ @version = :latest
end
def pull_images(*images)
@images += images.map(&:to_s)
end
@@ -26,9 +28,10 @@
else
params = args.shift
params[:cmd] ||= container_name
end
+ # TODO: Validate provided parameters before assignment
@containers[container_name.to_s] = params
end
def merge(other)
super.tap do |result|