lib/fig/command/action.rb in fig-1.25.0 vs lib/fig/command/action.rb in fig-1.25.1.beta.1

- old
+ new

@@ -19,22 +19,26 @@ def primary_option() return options()[0] end def options() - raise NotImplementedError + raise NotImplementedError.new( + "#{__callee__}() not implemented on #{self.class}." + ) end # Is this a special Action that should just be run on its own without looking # at other Actions? Note that anything that returns true won't get an # execution context. def execute_immediately_after_command_line_parse? return false end def descriptor_requirement() - raise NotImplementedError + raise NotImplementedError.new( + "#{__callee__}() not implemented on #{self.class}." + ) end def allow_both_descriptor_and_file?() return false end @@ -44,38 +48,48 @@ def cares_about_asset_options?() return false end def modifies_repository?() - raise NotImplementedError + raise NotImplementedError.new( + "#{__callee__}() not implemented on #{self.class}." + ) end def prepare_repository(repository) return # Nothing by default. end def load_base_package?() - raise NotImplementedError + raise NotImplementedError.new( + "#{__callee__}() not implemented on #{self.class}." + ) end def base_package_can_come_from_descriptor?() return true end # true, false, or nil if don't care. def register_base_package?() - raise NotImplementedError + raise NotImplementedError.new( + "#{__callee__}() not implemented on #{self.class}." + ) end # true, false, or nil if don't care. def apply_config?() - raise NotImplementedError + raise NotImplementedError.new( + "#{__callee__}() not implemented on #{self.class}." + ) end # true, false, or nil if don't care. def apply_base_config?() - raise NotImplementedError + raise NotImplementedError.new( + "#{__callee__}() not implemented on #{self.class}." + ) end def remote_operation_necessary?() return false end @@ -114,8 +128,10 @@ # Do nothing by default. return end def execute() - raise NotImplementedError + raise NotImplementedError.new( + "#{__callee__}() not implemented on #{self.class}." + ) end end