Module: Ed::Config
- Defined in:
- lib/ed/config.rb
Class Method Summary collapse
- .change {|config| ... } ⇒ Object
-
.copy_repository ⇒ Boolean
(also: copy_repository?)
When true, a copy of a repository is created to work off.
- .copy_repository=(value) ⇒ Object
-
.repo_dir ⇒ Pathname
The path being used to store cloned repositories.
- .repo_dir=(path) ⇒ Pathname
-
.should_fork ⇒ Boolean
(also: should_fork?)
Returns true if a subprocess is created to check out a commit.
- .should_fork=(value) ⇒ Boolean
Class Method Details
.change {|config| ... } ⇒ Object
17 18 19 |
# File 'lib/ed/config.rb', line 17 def change yield self end |
.copy_repository ⇒ Boolean Also known as: copy_repository?
Returns When true, a copy of a repository is created to work off.
52 53 54 |
# File 'lib/ed/config.rb', line 52 def copy_repository @copy_repository end |
.copy_repository=(value) ⇒ Object
44 45 46 |
# File 'lib/ed/config.rb', line 44 def copy_repository= value @copy_repository = value end |
.repo_dir ⇒ Pathname
Returns The path being used to store cloned repositories.
36 37 38 |
# File 'lib/ed/config.rb', line 36 def repo_dir @repo_dir end |
.repo_dir=(path) ⇒ Pathname
27 28 29 |
# File 'lib/ed/config.rb', line 27 def repo_dir= path @repo_dir = Pathname.new path.to_s end |
.should_fork ⇒ Boolean Also known as: should_fork?
Returns true if a subprocess is created to check out a commit.
75 76 77 |
# File 'lib/ed/config.rb', line 75 def should_fork @should_fork end |
.should_fork=(value) ⇒ Boolean
63 64 65 66 67 68 69 |
# File 'lib/ed/config.rb', line 63 def should_fork= value if value && Ed::Env.fork_unavailable? raise ArgumentError, 'Kernel#fork is not available on your platform.' end @should_fork = value end |