tdl 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/tdl-create.rb +12 -1
  2. metadata +2 -2
@@ -57,16 +57,27 @@ class TDLCreate < Thor
57
57
  begin
58
58
  packages = []
59
59
  name = ask("Template Name:")
60
+ raise :finished if name.nil?
61
+
60
62
  description = ask("Template Description:")
63
+ raise :finished if description.nil?
64
+
61
65
  os_name = ask("OS Name:")
66
+ raise :finished if os_name.nil?
67
+
62
68
  os_version = ask("OS Version:")
69
+ raise :finished if os_version.nil?
70
+
63
71
  while true
64
72
  package = ask('Package:')
73
+ raise :finished if package.nil?
65
74
  packages << package
66
75
  end
76
+
67
77
  # TODO also files and commands
68
78
  # TODO also cloud and verify for etdls
69
- rescue Exception => e
79
+
80
+ rescue :finished, Exception => e
70
81
  say "\n"
71
82
  end
72
83
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tdl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-06 00:00:00.000000000 Z
12
+ date: 2013-03-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec