sensu-plugins-ftp 1.0.0 → 1.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5ffa02f11c10b20ca3c6b1025cb1103c7431d8a9
4
- data.tar.gz: 96ac957cf4f4289a254d1d375b45fb7017f1d235
3
+ metadata.gz: 5de3a9966da07c1f8fb16651563a0486e2a92803
4
+ data.tar.gz: d6344a92aeb4eb446bcab1c84490192bd5e25ab4
5
5
  SHA512:
6
- metadata.gz: b77645699046ccfc107bbcb7fcbb2937f76a2ea09819c066bb3ed74453f43e740159e04faef9812152b8583f9fcbc5a679503f42b6cfbf54c765d8200fe3ec91
7
- data.tar.gz: bbf7969ebddb11d148646ddc909552c592818e7d30cdea2be04bad0ff59ea756c0b64bca044b3c48f7f76d7ca626abdcdd6a95ba7ddb350a940dbdfff0e0fd07
6
+ metadata.gz: 24fc5e7b079f7503ba0e268674f7a3fa6e00dbcf6d14d6b204eb920d169d3a0a5614dc8ce486d34dce7e1bbf198e7b150ee80f2f82a27ea212f3f792e4617fef
7
+ data.tar.gz: f0f97a7233deeb4acc78e1c047874f64f63dc829f144da46c008947683c634faf12d534f1a7b9b1b2d678c41f1aa035b1fdadade3bf50104c56702fe904bfec5
@@ -5,6 +5,11 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [1.1.0] - 2017-05-30
9
+ ### Added
10
+ - check-ftp.rb: add support for implicit FTPS. (@swibowo)
11
+ - Add `double-bag-ftps` dependency (@swibowo)
12
+
8
13
  ## [1.0.0] - 2017-05-14
9
14
  ### Added
10
15
  - Add support for writing test files (@sstarcher)
@@ -25,6 +30,7 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
25
30
  ### Added
26
31
  - initial release
27
32
 
28
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-ftp/compare/1.0.0...HEAD
33
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-ftp/compare/1.1.0...HEAD
34
+ [1.1.0]: https://github.com/sensu-plugins/sensu-plugins-ftp/compare/1.0.0...1.1.0
29
35
  [1.0.0]: https://github.com/sensu-plugins/sensu-plugins-ftp/compare/0.0.2...1.0.0
30
36
  [0.0.2]: https://github.com/sensu-plugins/sensu-plugins-ftp/compare/0.0.1...0.0.2
@@ -63,6 +63,10 @@ class CheckFTP < Sensu::Plugin::Check::CLI
63
63
  short: '-t SECS',
64
64
  proc: proc(&:to_i),
65
65
  default: 15
66
+ option :implicit_ftps,
67
+ short: '-i',
68
+ boolean: true,
69
+ default: false
66
70
 
67
71
  def write_file
68
72
  file = Tempfile.new("sensu_#{Time.now.to_i}.txt")
@@ -114,6 +118,9 @@ class CheckFTP < Sensu::Plugin::Check::CLI
114
118
  ftps.ssl_context = DoubleBagFTPS.create_ssl_context(
115
119
  verify_mode: verify
116
120
  )
121
+ if config[:implicit_ftps]
122
+ ftps.ftps_mode = DoubleBagFTPS::IMPLICIT
123
+ end
117
124
  ftps.connect(config[:host])
118
125
  ftps
119
126
  rescue => e
@@ -1,7 +1,7 @@
1
1
  module SensuPluginsFtp
2
2
  module Version
3
3
  MAJOR = 1
4
- MINOR = 0
4
+ MINOR = 1
5
5
  PATCH = 0
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-ftp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu-Plugins and contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-15 00:00:00.000000000 Z
11
+ date: 2017-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: double-bag-ftps
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.1.3
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.1.3
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: bundler
29
43
  requirement: !ruby/object:Gem::Requirement