cloudfactory 0.4.5.1 → 0.4.5.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,6 +1,7 @@
1
- ## 0.4.5 (2012-02-14)
1
+ ## 0.4.5.2 (2012-02-14)
2
2
  * Template and Template file added for bulk goldstandards from csv
3
3
  * Line deletion with runs bug fixed
4
+ * Line runs gets deleted if user wants during line creation
4
5
 
5
6
  ## 0.4.5 (2012-02-01)
6
7
 
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["template_file"]
303
- gold_template_source = gold_standards["template_file"]
304
- if File.exist?(gold_template_source)
305
- gold_template = YAML::load(File.read(gold_template_source).strip)
306
- gold_standards.merge!("template" => gold_template)
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["template_file"]
356
- gold_template_source = gold_standards["template_file"]
357
- if File.exist?(gold_template_source)
358
- gold_template = YAML::load(File.read(gold_template_source).strip)
359
- gold_standards.merge!("template" => gold_template)
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
@@ -1,3 +1,3 @@
1
1
  module CF # :nodoc: all
2
- VERSION = "0.4.5.1"
2
+ VERSION = "0.4.5.2"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: cloudfactory
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.5.1
5
+ version: 0.4.5.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - CloudFactory.com