Class: Vagabund::Squatter::Config
- Inherits:
-
Object
- Object
- Vagabund::Squatter::Config
- Defined in:
- lib/vagabund/squatter/config.rb
Constant Summary collapse
- DEFAULT_FILES =
['.vimrc', '.viminfo', '.gitconfig', '.ssh/known_hosts']
Instance Attribute Summary collapse
-
#guest_home ⇒ Object
Returns the value of attribute guest_home.
-
#host_home ⇒ Object
Returns the value of attribute host_home.
Instance Method Summary collapse
Instance Attribute Details
#guest_home ⇒ Object
Returns the value of attribute guest_home.
6 7 8 |
# File 'lib/vagabund/squatter/config.rb', line 6 def guest_home @guest_home end |
#host_home ⇒ Object
Returns the value of attribute host_home.
6 7 8 |
# File 'lib/vagabund/squatter/config.rb', line 6 def host_home @host_home end |
Instance Method Details
#file=(filename) ⇒ Object
18 19 20 |
# File 'lib/vagabund/squatter/config.rb', line 18 def file=(filename) files << filename end |
#files ⇒ Object
10 11 12 |
# File 'lib/vagabund/squatter/config.rb', line 10 def files @files ||= DEFAULT_FILES end |
#files=(file_arr) ⇒ Object
14 15 16 |
# File 'lib/vagabund/squatter/config.rb', line 14 def files=(file_arr) @files = file_arr end |
#user ⇒ Object
30 31 32 |
# File 'lib/vagabund/squatter/config.rb', line 30 def user @user ||= User.new end |