lib/docman/info.rb in docman-0.0.76 vs lib/docman/info.rb in docman-0.0.77

- old
+ new

@@ -59,11 +59,12 @@ to_save['version_type'] = self.version_type unless self.version_type.nil? to_save['version'] = self.version unless self.version.nil? to_save['result'] = result to_save['type'] = self['type'] to_save['build_type'] = self['build_type'] - - File.open(File.join(self['full_build_path'], 'info.yaml'), 'w') {|f| f.write to_save.to_yaml} + if environment_name() != 'local' + File.open(File.join(self['full_build_path'], 'info.yaml'), 'w') {|f| f.write to_save.to_yaml} + end to_save end def changed? #TODO: need refactor \ No newline at end of file