Class: Ed
Defined Under Namespace
Modules: Config, Env Classes: Delegator, Repository
Constant Summary collapse
- VERSION =
"0.7.0"
Class Method Summary collapse
Instance Method Summary collapse
- #commit(commit, &block) {|path| ... } ⇒ void (also: #tag, #branch)
- #initialize(path) {|_self| ... } ⇒ Ed constructor
- #setup(&block) {|path| ... } ⇒ void
Constructor Details
Class Method Details
Instance Method Details
#commit(commit, &block) {|path| ... } ⇒ void Also known as: tag, branch
This method returns an undefined value.
77 78 79 80 81 82 83 84 85 86 87 |
# File 'lib/ed.rb', line 77 def commit commit, &block if Ed::Config.should_fork? pid = fork do switch(commit, &block) end Process.wait(pid) else switch(commit, &block) end end |
#setup(&block) {|path| ... } ⇒ void
This method returns an undefined value.
61 62 63 |
# File 'lib/ed.rb', line 61 def setup &block add_observer(:setup_block, &block) end |