itamae-plugin-resource-iptables 0.0.1 → 0.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: f317f0705017d3ee086290e31d0d3783da45a1c2
4
- data.tar.gz: 5a47520726d648ef2c2b068c80be2aeff9b8ea07
3
+ metadata.gz: e43900cdf75a2c43f05abf8cda0752bb6c2b7dfc
4
+ data.tar.gz: 239c9de4e48709f4b8200fc3685f3eb921ed8e9e
5
5
  SHA512:
6
- metadata.gz: 4e3a0bb59121a2d19b1c5211c7687cf3f80ecc8ab50b1af8531e92d95cfde391c998139956b6dbf0fa010e7b564cf8cc5a65cf998fe70fb206fcf1c2a5bc37aa
7
- data.tar.gz: 3deda76ba4a82ad8669c8ed20ac19ba71728f52eaad5b56de10d34903d43989de7d980a9e0d25f7748c0b1833d211e812e85bcb0f055b9b4bb0e83e4e0442139
6
+ metadata.gz: 2d0824a935f43f1ce7e9d7238dd23b73808b01aa4f155c45fe63b56b1403eabc67c44611b34c4c2d73c3337a07a1f13f0349308ff6d0e85acb8bbc3fd12b0e20
7
+ data.tar.gz: b39d925089931ee8d4666919244935afbfc75c822576871963c0755374cb8c105fc94c0c831dbfefb5a7e059e833b4382ec5e645fdcdc4b33ca4d70c4f39a82d
@@ -2,7 +2,7 @@ module Itamae
2
2
  module Plugin
3
3
  module Resource
4
4
  module Iptables
5
- VERSION = "0.0.1"
5
+ VERSION = "0.0.2"
6
6
  end
7
7
  end
8
8
  end
@@ -11,7 +11,7 @@ module Itamae
11
11
  def set_current_attributes
12
12
  current.exist = run_command(['iptables', '--table', attributes.table, '--list-rules', attributes.chain], error: false).exit_status == 0
13
13
  unless current.exist
14
- Logger.info "Create chain #{attributes.chain}"
14
+ Itamae.logger.info "Create chain #{attributes.chain}"
15
15
  end
16
16
  end
17
17
 
@@ -33,7 +33,7 @@ module Itamae
33
33
  rule = build_rule(attributes)
34
34
  current.exist = run_command(['iptables', '--table', attributes.table, '--check', attributes.chain] + rule, error: false).exit_status == 0
35
35
  unless current.exist
36
- Logger.info "Create rule for #{attributes.chain}: #{rule.join(' ')}"
36
+ Itamae.logger.info "Create rule for #{attributes.chain}: #{rule.join(' ')}"
37
37
  end
38
38
  end
39
39
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae-plugin-resource-iptables
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kohei Suzuki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-13 00:00:00.000000000 Z
11
+ date: 2016-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  version: '0'
100
100
  requirements: []
101
101
  rubyforge_project:
102
- rubygems_version: 2.4.5
102
+ rubygems_version: 2.4.5.1
103
103
  signing_key:
104
104
  specification_version: 4
105
105
  summary: itamae resource plugin to manage iptables.