veewee-to-packer 0.2.6 → 0.3.0

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.
@@ -8,6 +8,7 @@ $stdout.sync = true
8
8
  $stderr.sync = true
9
9
 
10
10
  require 'optparse'
11
+ require 'veewee-to-packer'
11
12
 
12
13
  # Parse arguments
13
14
  options = {
@@ -25,6 +26,11 @@ OptionParser.new do |opts|
25
26
  opts.on("-o", "--output DIR", String, "Directory where files will be outputted.") do |output|
26
27
  options[:output] = output
27
28
  end
29
+
30
+ opts.on('-v', '--version', 'Show version') do
31
+ puts "veewee-to-packer #{VeeweeToPacker::VERSION}"
32
+ exit
33
+ end
28
34
  end.parse!
29
35
 
30
36
  if ARGV.length != 1
@@ -33,7 +39,6 @@ if ARGV.length != 1
33
39
  end
34
40
 
35
41
  # Do the actual conversion
36
- require "veewee-to-packer"
37
42
  begin
38
43
  warnings = VeeweeToPacker.convert(ARGV[0], options[:output], options[:builders])
39
44
 
@@ -86,6 +86,7 @@ module VeeweeToPacker
86
86
  gsub("<Spacebar>", " ").
87
87
  gsub("<Tab>", "<tab>").
88
88
  gsub("<Wait>", "<wait>").
89
+ gsub("<Backspace>", "<bs>").
89
90
  gsub("%NAME%", "{{ .Name }}").
90
91
  gsub("%IP%", "{{ .HTTPIP }}").
91
92
  gsub("%PORT%", "{{ .HTTPPort }}")
@@ -88,6 +88,7 @@ module VeeweeToPacker
88
88
  gsub("<Spacebar>", " ").
89
89
  gsub("<Tab>", "<tab>").
90
90
  gsub("<Wait>", "<wait>").
91
+ gsub("<Backspace>", "<bs>").
91
92
  gsub("%NAME%", "{{ .Name }}").
92
93
  gsub("%IP%", "{{ .HTTPIP }}").
93
94
  gsub("%PORT%", "{{ .HTTPPort }}")
@@ -1,3 +1,3 @@
1
1
  module VeeweeToPacker
2
- VERSION = "0.2.6"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: veewee-to-packer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.3.0
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-10-06 00:00:00.000000000 Z
12
+ date: 2013-11-24 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Converts Veewee templates to Packer templates.
15
15
  email: