Class: RulesEngine::Publish::Publisher
- Inherits:
-
Object
- Object
- RulesEngine::Publish::Publisher
- Defined in:
- lib/rules_engine/publish/publisher.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#get(plan_code, plan_version = nil) ⇒ Object
return the published plan_version.
-
#history(plan_code, options = {}) ⇒ Object
list the published versions.
-
#publish(plan_code, version_tag, plan) ⇒ Object
return the published version.
-
#remove(plan_code, plan_version = nil) ⇒ Object
remove the plan.
Instance Method Details
#get(plan_code, plan_version = nil) ⇒ Object
return the published plan_version
34 35 36 |
# File 'lib/rules_engine/publish/publisher.rb', line 34 def get(plan_code, plan_version = nil) throw "RulesEngine::Publish::Publisher required" end |
#history(plan_code, options = {}) ⇒ Object
list the published versions
39 40 41 42 43 44 |
# File 'lib/rules_engine/publish/publisher.rb', line 39 def history(plan_code, = {}) throw "RulesEngine::Publish::Publisher required" # { # :publications => [] # } end |
#publish(plan_code, version_tag, plan) ⇒ Object
return the published version
28 29 30 31 |
# File 'lib/rules_engine/publish/publisher.rb', line 28 def publish(plan_code, version_tag, plan) throw "RulesEngine::Publish::Publisher required" # 1 end |
#remove(plan_code, plan_version = nil) ⇒ Object
remove the plan
47 48 49 |
# File 'lib/rules_engine/publish/publisher.rb', line 47 def remove(plan_code, plan_version = nil) throw "RulesEngine::Publish::Publisher required" end |