lib/synchronised_migration/result.rb in synchronised_migration-2.0.0 vs lib/synchronised_migration/result.rb in synchronised_migration-2.1.0
- old
+ new
@@ -8,6 +8,14 @@
end
def success?
error.nil?
end
+
+ def self.ok
+ self.new
+ end
+
+ def self.fail(error)
+ self.new error
+ end
end