X-Git-Url: https://pwan.org/git/?p=vagrant-dotfiles.git;a=blobdiff_plain;f=lib%2Fcopy_my_conf%2Fconfig.rb;fp=lib%2Fcopy_my_conf%2Fconfig.rb;h=b077607dd4d3788ab2260f43e1f137903a3dab1d;hp=0000000000000000000000000000000000000000;hb=2a7fb02fbf510e8475a65ed5a76b879aa4cb841e;hpb=98cb869941896b43b33ed5786837911c267c772f diff --git a/lib/copy_my_conf/config.rb b/lib/copy_my_conf/config.rb new file mode 100644 index 0000000..b077607 --- /dev/null +++ b/lib/copy_my_conf/config.rb @@ -0,0 +1,20 @@ +module Vagrant + module Provisioners + class CopyMyConf < Base + class Config < Vagrant::Config::Base + def self.all_attributes + [:ssh, :vim, :git] + end + attr_accessor *all_attributes + attr_accessor :user_home + + def all_true + self.class.all_attributes.collect do |attr| + self.send(attr) ? attr : nil + end.compact + end + end + end + end +end +