riptables 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 188cb2ed7bb522ea47cd1c2fde51ff290b258f68
4
- data.tar.gz: 269aaf5101ca29be6afa53f288527384f4840ae3
3
+ metadata.gz: 1a0001312aa10d20133b4843b16451b564e885df
4
+ data.tar.gz: 7cf791344ec27b7f68945b837c6905ec26ef6155
5
5
  SHA512:
6
- metadata.gz: 95f7cd9e5d4a41434d2976e3ec5332aceb239196a2ceb75c9161d06726a05c0000f04b2e5abb92a3a0821b12fb0bbf1cd09b948e2b9afe970cf1efe5a08e7c3e
7
- data.tar.gz: 71146751cebabb763760533c9adf4e810b67f364c54d281a564ff4b999d4f18f4e54c513b2db4d36895cf1f707ac08b3ef602b8a88357049b306d33fec1328f9
6
+ metadata.gz: 18a1cf008d7dddd71409ec6bb65baf1135420f6fd979f425a5fca2ae145bcd3dc51df6607d713008840e4710283b561957a5f6314e054c10108b3f707ef98923
7
+ data.tar.gz: b73604d7df64a8dd047be08d4528c8296856e5f08d1dede44df7d96ea444bba1fa39a27f39df3c7957dc8660500bb507a0892c402cdc4d834d51111464b43d5e
data/README.md CHANGED
@@ -139,3 +139,4 @@ The following options are supported and can be used interchagably:
139
139
  * `--zone [ZONE]` - set the zone to export configuration for
140
140
  * `--role [ROLE]` - set the role to export configuration for
141
141
  * `--color` - return a [colorized output](http://s.adamcooke.io/14/Vmzd2.png) (useful for debugging)
142
+ * `--no-timestamp` - do not include the timestamp in the generated output
data/bin/riptables CHANGED
@@ -16,8 +16,8 @@ OptionParser.new do |opts|
16
16
  opts.on("-r", "--role [ROLE]", "The role to generate for") { |v| options[:conditions][:role] = v }
17
17
  opts.on("-z", "--zone [ZONE]", "The zone to generate for") { |v| options[:conditions][:zone] = v }
18
18
  opts.on("--color", "Colorize the output") { |v| options[:color] = true }
19
- opts.on("--color", "Colorize the output") { |v| options[:color] = true }
20
19
  opts.on("-f", "--file [PATH]", "The Riptables configuration file") { |v| load_path = v }
20
+ opts.on("--no-timestamps", "Do not print the timestamp on output") { |v| options[:timestamp] = false }
21
21
  end.parse!
22
22
 
23
23
  begin
@@ -24,7 +24,8 @@ module Riptables
24
24
  end
25
25
 
26
26
  s << "COMMIT"
27
- s << "# Compiled by riptables on #{Time.now.strftime("%a %b %e %H:%M:%S %Y")}"
27
+ timestamp = @options[:timestamp] == false ? '' : "on #{Time.now.strftime("%a %b %e %H:%M:%S %Y")}"
28
+ s << "# Compiled by riptables #{timestamp}"
28
29
  end.join("\n")
29
30
  end
30
31
 
@@ -1,3 +1,3 @@
1
1
  module Riptables
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riptables
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Cooke