Class: Vagabund::Squatter::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/vagabund/squatter/config.rb

Constant Summary collapse

DEFAULT_FILES =
['.vimrc', '.viminfo', '.gitconfig', '.ssh/known_hosts']

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#guest_homeObject

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_homeObject

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

#filesObject



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

#userObject



30
31
32
# File 'lib/vagabund/squatter/config.rb', line 30

def user
  @user ||= User.new
end