axtro-rubber 1.0.2.4 → 1.0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/rubber/generator.rb +3 -1
- data/lib/rubber/recipes/rubber/volumes.rb +3 -0
- metadata +1 -1
data/lib/rubber/generator.rb
CHANGED
@@ -113,7 +113,7 @@ module Rubber
|
|
113
113
|
FileUtils.mkdir_p(File.dirname(config_path)) if config_path
|
114
114
|
|
115
115
|
# Write a backup of original
|
116
|
-
open("#{config_path}.bak", 'w') { |f| f.write(orig) } if config_path
|
116
|
+
open("#{config_path}.bak", 'w') { |f| f.write(orig) } if config_path and !config.no_backup
|
117
117
|
|
118
118
|
# Write out transformed file
|
119
119
|
writer = config_path || "|#{config.write_cmd}"
|
@@ -174,6 +174,8 @@ module Rubber
|
|
174
174
|
attr_accessor :additive
|
175
175
|
# Lets one dynamically determine if a given file gets skipped during transformation
|
176
176
|
attr_accessor :skip
|
177
|
+
# Lets one dynamically skip the creation of a backup
|
178
|
+
attr_accessor :no_backup
|
177
179
|
# use sudo to write the output file
|
178
180
|
# attr_accessor :sudo
|
179
181
|
# options passed in through code
|
@@ -99,6 +99,9 @@ namespace :rubber do
|
|
99
99
|
break if volume[:status] == "in-use"
|
100
100
|
end
|
101
101
|
print "\n"
|
102
|
+
print "Waiting an extra 15s just to make sure... :)"
|
103
|
+
sleep 15
|
104
|
+
print "\n"
|
102
105
|
|
103
106
|
# we don't mount/format at this time if we are doing a RAID array
|
104
107
|
if vol_spec['mount'] && vol_spec['filesystem']
|