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 +4 -4
- data/README.md +1 -0
- data/bin/riptables +1 -1
- data/lib/riptables/table_export.rb +2 -1
- data/lib/riptables/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a0001312aa10d20133b4843b16451b564e885df
|
4
|
+
data.tar.gz: 7cf791344ec27b7f68945b837c6905ec26ef6155
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
|
data/lib/riptables/version.rb
CHANGED