lib/mattock/command-task.rb in mattock-0.3.0 vs lib/mattock/command-task.rb in mattock-0.3.1
- old
+ new
@@ -8,9 +8,26 @@
setting(:task_name, :run)
runtime_setting(:verify_command, nil)
runtime_setting(:command)
+ def resolve_runtime_configuration
+ super
+ #If there's a second troublesome command, this becomes a class-level
+ #array
+ if not verify_command.nil? and verify_command.name == "bundle"
+ unless BundleCommandTask === self
+ warn "Verify command is 'bundle' - this sometimes has unexpected results. Consider BundleCommandTask"
+ end
+ end
+
+ if command.name == "bundle"
+ unless BundleCommandTask === self
+ warn "Command is 'bundle' - this sometimes has unexpected results. Consider BundleCommandTask"
+ end
+ end
+ end
+
def verify_command
if @verify_command.respond_to?(:call)
@verify_command = @verify_command.call
end
@verify_command