Sha256: bbc24b279b9b2a79106ef5b4ed5d6d0fdc048cfc79c2a17b053f2747ed59dddc
Contents?: true
Size: 708 Bytes
Versions: 2
Compression:
Stored size: 708 Bytes
Contents
module VagrantPlugins module Exec class Config < Vagrant.plugin(2, :config) attr_reader :env attr_accessor :bundler attr_accessor :folder def initialize @env = {} @bundler = UNSET_VALUE @folder = UNSET_VALUE end def validate(_) return { 'exec' => ['bundler should be boolean'] } unless [true, false].include?(@bundler) return { 'exec' => ['folder should be a string'] } unless @folder.is_a?(String) {} end def finalize! @folder = '/vagrant' if @folder == UNSET_VALUE @bundler = false if @bundler == UNSET_VALUE end end # Config end # Exec end # VagrantPlugins
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vagrant-exec-0.2.1 | lib/vagrant-exec/config.rb |
vagrant-exec-0.2.0 | lib/vagrant-exec/config.rb |