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