Sha256: 377211cd62b4ad8513f396e98296019f8fcc2a04fc418da46db9ed654faadac6
Contents?: true
Size: 764 Bytes
Versions: 2
Compression:
Stored size: 764 Bytes
Contents
module VagrantPlugins module RsyncPick class Config < Vagrant.plugin(2, :config) SECTION_NAME = "rsync_pick" attr_accessor :guest_dir, :host_dir def initialize # @guest_dir = UNSET_VALUE # @host_dir = UNSET_VALUE end def validate(machine) errors = _detected_errors unless @guest_dir errors << "Config value rsync_pick.guest_dir is required" # errors << I18n.t("vagrant_rsync_pick.validation.guest_dir_required") end unless @host_dir errors << "Config value rsync_pick.host_dir is required" # errors << I18n.t("vagrant_rsync_pick.validation.host_dir_required") end { SECTION_NAME => errors } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vagrant-rsync-pick-0.2.1 | lib/vagrant-rsync-pick/config.rb |
vagrant-rsync-pick-0.2.0 | lib/vagrant-rsync-pick/config.rb |