Class: Svenbot::Repo
- Inherits:
-
Object
- Object
- Svenbot::Repo
- Defined in:
- lib/svenbot/repo.rb
Overview
A subversion repository on the filesystem.
Instance Attribute Summary collapse
-
#dir ⇒ Object
readonly
The directory the repository lives in.
Instance Method Summary collapse
-
#initialize(dir) ⇒ Repo
constructor
Create a new Repo.
-
#make_meta_dir ⇒ Object
Create the meta directory if needed.
-
#meta_dir ⇒ Object
Return a directory within the repository for use by svenbot.
Constructor Details
#initialize(dir) ⇒ Repo
Create a new Repo.
8 9 10 |
# File 'lib/svenbot/repo.rb', line 8 def initialize(dir) @dir = dir end |
Instance Attribute Details
#dir ⇒ Object (readonly)
The directory the repository lives in.
5 6 7 |
# File 'lib/svenbot/repo.rb', line 5 def dir @dir end |
Instance Method Details
#make_meta_dir ⇒ Object
Create the meta directory if needed.
19 20 21 |
# File 'lib/svenbot/repo.rb', line 19 def Dir.mkdir() unless File.directory?() end |
#meta_dir ⇒ Object
Return a directory within the repository for use by svenbot. Defaults to a subdirectory “svenbot”.
14 15 16 |
# File 'lib/svenbot/repo.rb', line 14 def return "#{dir}/svenbot" end |