lib/rconf/profile.rb in rconf-0.8.3 vs lib/rconf/profile.rb in rconf-0.8.4
- old
+ new
@@ -74,21 +74,39 @@
# Force re-configuration even if it was already done
#
# === Return
# true:: Always return true
- def force
- @force = true
+ def force_check
+ @force_check = true
reset
end
# Should next configuration force re-configuration?
#
# === Return
# true:: If re-configuration should be forced
# false:: Otherwise
- def force?
- res = @force || false
+ def force_check?
+ res = @force_check || false
+ end
+
+ # Bypass checks and always reconfigure
+ #
+ # === Return
+ # true:: Always return true
+ def force_reconfigure
+ @force_reconfigure = true
+ reset
+ end
+
+ # Should next configuration bypass checks?
+ #
+ # === Return
+ # true:: If re-configuration should bypass checks
+ # false:: Otherwise
+ def force_reconfigure?
+ res = @force_reconfigure || false
end
protected
# Retrieve profile file path