lib/itamae/resource/directory.rb in itamae-1.1.22 vs lib/itamae/resource/directory.rb in itamae-1.1.23
- old
+ new
@@ -14,9 +14,16 @@
when :create
attributes.exist = true
end
end
+ def show_differences
+ current.mode = current.mode.rjust(4, '0') if current.mode
+ attributes.mode = attributes.mode.rjust(4, '0') if attributes.mode
+
+ super
+ end
+
def set_current_attributes
exist = run_specinfra(:check_file_is_directory, attributes.path)
current.exist = exist
if exist