projects
/
vagrant-dotfiles.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added spec for Config
[vagrant-dotfiles.git]
/
lib
/
copy_my_conf
/
config.rb
1
module
Vagrant
2
module
Provisioners
3
class
CopyMyConf
<
Base
4
class
Config
<
Vagrant
::Config::Base
5
def self
.
all_attributes
6
[
:ssh
,
:vim
,
:git
]
7
end
8
attr_accessor
*
all_attributes
9
attr_accessor
:user_home
10
11
def
all_true
12
self
.
class
.
all_attributes
.
collect
do
|
attr
|
13
self
.
send
(
attr
) ?
attr
:
nil
14
end
.
compact
15
end
16
end
17
end
18
end
19
end
20