projects
/
vagrant-dotfiles.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Now supporting vagrant 1.2. Simplified config class. SSH not working
[vagrant-dotfiles.git]
/
lib
/
copy_my_conf
/
config.rb
1
require_relative
"git"
2
require_relative
"ssh"
3
require_relative
"vim"
4
5
module
CopyMyConf
6
class
Config
<
Vagrant
.
plugin
(
"2"
,
:config
)
7
attr_accessor
:user_home
8
9
def
git
10
@git
||=
CopyMyConf
::Git
.
new
11
end
12
13
def
vim
14
@vim
||=
CopyMyConf
::Vim
.
new
15
end
16
17
def
ssh
18
@ssh
||=
CopyMyConf
::Ssh
.
new
19
end
20
21
def
all_enabled_attributes
22
[
@ssh
,
@vim
,
@git
].
compact
23
end
24
end
25
end
26