asa_console 0.1.3 → 0.2.0

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: b477c5a5fb64782e7e28b0bbbc42651ea52c6cdd
4
- data.tar.gz: 3b1571a5b3869d040ca63436be31c1923228ab66
3
+ metadata.gz: eee250c1a22bf344caa19d8a29087399935faaae
4
+ data.tar.gz: d4243104963a22f0a729f8e295f145938f2afe5f
5
5
  SHA512:
6
- metadata.gz: 3670886be70a95509e52a50a95b2aae1a765c3ede4783d523e3be3cd18d4b5f36bbfd6cccd8e45b6c7740ddd901087765010b411d28fc9b1edda3252e7a49f3c
7
- data.tar.gz: a43b4654fbe6cf83f57b0893e6106d526a1403277183acc98add3d835d0b375e0d92334d3f3ddbc99ab7431aa6ce6272901ae6c8532c78483cbdf68003bb8d69
6
+ metadata.gz: b70c3365f66252f72413b2686405b49e8dc83e55b4c039fc36142f4a4c719bb526d1c8492911ac22a905676aa8aab10233fa31ebaa80728d24f41d68a69d19b8
7
+ data.tar.gz: f0876b2dd55d63f096d7d77d06fc5fffe26782de3822e950df9de73475d498d94b3419855ca05f16a7432573923d639753ee44b85b5eaf6e4e1eb16b15a04b7a
data/LICENSE.md CHANGED
@@ -1,7 +1,7 @@
1
1
  The MIT License (MIT)
2
2
  =====================
3
3
 
4
- Copyright (c) 2015-2016 Henry Goodman
4
+ Copyright (c) 2015-2017 Henry Goodman
5
5
 
6
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -14,9 +14,7 @@ This gem lets a program interact with a Cisco ASA using CLI commands. It include
14
14
  Caveats
15
15
  =======
16
16
 
17
- Most people would be better off using [Cisco's official REST API](http://www.cisco.com/c/en/us/td/docs/security/asa/api/qsg-asa-api.html) plugin for the ASA platform. This gem does not use the supported API. It was developed as an academic pursuit and may not be suitable for your environment. It is distributed under the [MIT License](LICENSE.md), which is to say that it comes with no warranty of any kind.
18
-
19
- That being said, you might find it useful if you are working with older hardware or if you have other special requirements. The official REST API plugin is only supported on 5500-X, ASAv and newer platforms.
17
+ This gem provides an alternative to installing [Cisco's official REST API](http://www.cisco.com/c/en/us/td/docs/security/asa/api/qsg-asa-api.html) plugin for the ASA platform. You may find it particularly useful if you are working with older hardware or software versions. The official REST API plugin is only supported on 5500-X, ASAv and newer platforms.
20
18
 
21
19
  For the time being, direct SSH is the only transport method implemented by this gem although it could easily be extended to support alternatives like using a serial console or a jump box.
22
20
 
@@ -1,7 +1,7 @@
1
1
 
2
2
  Gem::Specification.new do |s|
3
3
  s.name = 'asa_console'
4
- s.version = '0.1.3'
4
+ s.version = '0.2.0'
5
5
  s.summary = 'Cisco ASA management via an interactive terminal session'
6
6
  s.description = 'This gem lets a program interact with a Cisco ASA using CLI
7
7
  commands. It includes a minimal set of functions for issuing commands and
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
14
14
  s.files = Dir[__FILE__, 'lib/**/*', 'script/*', '*.md', '.yardopts']
15
15
  s.executables = ['asatest']
16
16
 
17
- s.add_runtime_dependency('net-ssh', '~> 2.9.2')
17
+ s.add_runtime_dependency('net-ssh', '~> 3.0.2')
18
18
  s.add_runtime_dependency('highline', '~> 1.7')
19
19
 
20
20
  s.add_development_dependency('bundler', '~> 1.7')
@@ -26,5 +26,5 @@ Gem::Specification.new do |s|
26
26
  s.add_development_dependency('thor', '~> 0.19')
27
27
  s.add_development_dependency('yard', '~> 0.8')
28
28
 
29
- s.required_ruby_version = '>=1.9.3'
29
+ s.required_ruby_version = '>=2.0'
30
30
  end
@@ -115,7 +115,7 @@ class ASAConsole
115
115
  end
116
116
  end
117
117
  end
118
- rescue Timeout::Error
118
+ rescue Net::SSH::ConnectionTimeout
119
119
  raise Error::ConnectionTimeoutError, "Timeout connecting to #{@host}"
120
120
  rescue Net::SSH::AuthenticationFailed
121
121
  raise Error::AuthenticationFailure, "Authentication failed for #{@user}@#{@host}"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asa_console
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henry Goodman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-26 00:00:00.000000000 Z
11
+ date: 2017-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.9.2
19
+ version: 3.0.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 2.9.2
26
+ version: 3.0.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: highline
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -193,7 +193,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
193
193
  requirements:
194
194
  - - ">="
195
195
  - !ruby/object:Gem::Version
196
- version: 1.9.3
196
+ version: '2.0'
197
197
  required_rubygems_version: !ruby/object:Gem::Requirement
198
198
  requirements:
199
199
  - - ">="
@@ -201,9 +201,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
201
201
  version: '0'
202
202
  requirements: []
203
203
  rubyforge_project:
204
- rubygems_version: 2.5.1
204
+ rubygems_version: 2.6.11
205
205
  signing_key:
206
206
  specification_version: 4
207
207
  summary: Cisco ASA management via an interactive terminal session
208
208
  test_files: []
209
- has_rdoc: yard