iptables-web 0.3.5.pre6 → 0.3.5.pre7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8d6e366fe90d0ec24a41af58b4c6778badd58498
4
- data.tar.gz: 2a765207650ecad4f48a5df34557f9b8db0a58e1
3
+ metadata.gz: f740ee1eb96b8abf0cbd78886e00514ce47c2497
4
+ data.tar.gz: 5435779a6679a6748e64f5181ca191d00e1201be
5
5
  SHA512:
6
- metadata.gz: 52f3b2f154e644e14fdd2aaef0b29dc6ef7b1e476ce178e63efebdfc535931f4eefc494f51e107d7b959234a816c34eb9602f0d34fd36c08134a2fe4c0c0575a
7
- data.tar.gz: 3c0bd11be8f2d3ee629dfb0ff39a33a72dc4b666eee5e159c0784efbeff3f0b984f22b2137c0817e6449bc9027f1ce07435ad8c7c80da972017d1d2787b62da7
6
+ metadata.gz: e39319c75919d6a78c4b3647f95b3195b80a05b2a2eaa09f70e3363e5cdf5db055ab6d56bf3270ac8ce36a31ee45c99047b56372e2cc654bd25912ea64bc1a3d
7
+ data.tar.gz: b377754719ac93a8d95fab8989c25083a94982e669b3710de2eb8b0aa31fcccbd4297d05c33dfdfdf05fff8437c977b0b25048853454ebeae5ca6e6f15ef8717
@@ -81,7 +81,7 @@ module IptablesWeb
81
81
 
82
82
  #
83
83
  def log_path
84
- @log_path || '/var/log/iptables-web/run.log'
84
+ @log_path || '/var/log/iptables-web/update.log'
85
85
  end
86
86
 
87
87
  def log_path=(pid_path)
@@ -3,9 +3,9 @@ module IptablesWeb
3
3
  class Iptables
4
4
  LABEL = '[iptables-web]'
5
5
 
6
- IPTABLES_COMMAND = 'iptables'
7
- IPTABLES_SAVE_COMMAND = 'iptables-save'
8
- IPTABLES_RESTORE_COMMAND = 'iptables-restore'
6
+ IPTABLES_COMMAND = '/sbin/iptables'
7
+ IPTABLES_SAVE_COMMAND = '/sbin/iptables-save'
8
+ IPTABLES_RESTORE_COMMAND = '/sbin/iptables-restore'
9
9
 
10
10
  include IptablesWeb::Mixin::Sudo
11
11
  include IptablesWeb::Mixin::ConfigParser
@@ -35,7 +35,7 @@ module IptablesWeb
35
35
  end
36
36
  bash_file.rewind
37
37
  backup
38
- res = `bash #{bash_file.path}`
38
+ res = `bash #{bash_file.path} 2>&1`
39
39
  unless $? == 0
40
40
  logger_log('Failed to import settings. Restore previous configuration. See log for more details.', ::Logger::ERROR)
41
41
  logger_log(res, ::Logger::ERROR)
@@ -1,3 +1,4 @@
1
+ require 'yaml'
1
2
  module IptablesWeb
2
3
  module Model
3
4
  class Node < Base
@@ -28,10 +29,10 @@ module IptablesWeb
28
29
  })
29
30
  end
30
31
  logger_log('*** Found interfaces!!! ***', ::Logger::DEBUG)
31
- logger_log(node.ips.inspect, ::Logger::DEBUG)
32
+ logger_log(YAML.dump(node.ips), ::Logger::DEBUG)
32
33
  node.ips.uniq! { |ip| ip[:ip] }
33
34
  logger_log('*** Unique interfaces!!! ***', ::Logger::DEBUG)
34
- logger_log(node.ips.inspect, ::Logger::DEBUG)
35
+ logger_log(YAML.dump(node.ips), ::Logger::DEBUG)
35
36
  node.hostname = `hostname -f`
36
37
  node.save
37
38
  end
@@ -1,3 +1,3 @@
1
1
  module IptablesWeb
2
- VERSION = '0.3.5.pre6'
2
+ VERSION = '0.3.5.pre7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iptables-web
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5.pre6
4
+ version: 0.3.5.pre7
5
5
  platform: ruby
6
6
  authors:
7
7
  - NikolayMurga
@@ -180,8 +180,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  version: 1.3.1
181
181
  requirements: []
182
182
  rubyforge_project:
183
- rubygems_version: 2.4.5.1
183
+ rubygems_version: 2.4.7
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: Write a short summary. Required.
187
187
  test_files: []
188
+ has_rdoc: