cloudfactory 0.4.5.1 → 0.4.5.2
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/CHANGELOG.md +2 -1
- data/lib/cf/cli/line.rb +15 -10
- data/lib/cf/version.rb +1 -1
- metadata +1 -1
data/CHANGELOG.md
CHANGED
data/lib/cf/cli/line.rb
CHANGED
@@ -178,6 +178,7 @@ module Cf # :nodoc: all
|
|
178
178
|
say("This line already exist.", :yellow)
|
179
179
|
override = agree("Do you want to override? [y/n] ")
|
180
180
|
if override
|
181
|
+
self.delete
|
181
182
|
say("Deleting the line forcefuly..", :yellow)
|
182
183
|
rollback(line['title'])
|
183
184
|
else
|
@@ -299,11 +300,13 @@ module Cf # :nodoc: all
|
|
299
300
|
gold_standards = station_file['station']['gold_standards']
|
300
301
|
if gold_standards
|
301
302
|
say "Adding Gold Standards to stations", :green
|
302
|
-
if gold_standards
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
303
|
+
if gold_standards.class == Hash
|
304
|
+
if gold_standards["template_file"]
|
305
|
+
gold_template_source = gold_standards["template_file"]
|
306
|
+
if File.exist?(gold_template_source)
|
307
|
+
gold_template = YAML::load(File.read(gold_template_source).strip)
|
308
|
+
gold_standards.merge!("template" => gold_template)
|
309
|
+
end
|
307
310
|
end
|
308
311
|
end
|
309
312
|
if gold_standards.class == Hash#gold_standards["file"]
|
@@ -352,11 +355,13 @@ module Cf # :nodoc: all
|
|
352
355
|
gold_standards = line_dump['gold_standards'].presence
|
353
356
|
if gold_standards
|
354
357
|
say "Adding GoldStandards to Line", :green
|
355
|
-
if gold_standards
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
358
|
+
if gold_standards.class == Hash
|
359
|
+
if gold_standards["template_file"]
|
360
|
+
gold_template_source = gold_standards["template_file"]
|
361
|
+
if File.exist?(gold_template_source)
|
362
|
+
gold_template = YAML::load(File.read(gold_template_source).strip)
|
363
|
+
gold_standards.merge!("template" => gold_template)
|
364
|
+
end
|
360
365
|
end
|
361
366
|
end
|
362
367
|
if gold_standards.class == Hash#gold_standards["file"]
|
data/lib/cf/version.rb
CHANGED