lib/rscm/base.rb in rscm-0.3.12 vs lib/rscm/base.rb in rscm-0.3.13
- old
+ new
@@ -28,22 +28,23 @@
# * central_exists?
# * create_central
# * can_create_central?
# * import_central
# * install_trigger
- # * supports_trigger? # TODO: rename to can_install_trigger?
+ # * supports_trigger? / can_install_trigger?
# * trigger_installed?
+ # * trigger_mechanism
# * uninstall_trigger
#
# Some methods are a bit fuzzy with respect to their relevance to the working copy or
# the associated central repository, as it depends on the nature of the individual underlying
# SCMs. These methods are:
#
# * checkout_command_line
# * label
# * name
- # * transactional?
+ # * transactional? / atomic?
# * update_command_line
#
# Some of the methods in this API use +from_identifier+ and +to_identifier+.
# These identifiers can be either a UTC Time (according to the SCM's clock)
# or a String or Integer representing a label/revision
@@ -235,9 +236,15 @@
# upon a completed commit to the SCM.
def supports_trigger?
# The default implementation assumes no - override if it can be
# determined programmatically.
false
+ end
+ alias :can_install_trigger? :supports_trigger?
+
+ # Descriptive name of the trigger mechanism
+ def trigger_mechanism
+ "Unknown"
end
# Installs +trigger_command+ in the SCM.
# The +install_dir+ parameter should be an empty local
# directory that the SCM can use for temporary files