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 +4 -4
- data/LICENSE.md +1 -1
- data/README.md +1 -3
- data/asa_console.gemspec +3 -3
- data/lib/asa_console/terminal/ssh.rb +1 -1
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eee250c1a22bf344caa19d8a29087399935faaae
|
4
|
+
data.tar.gz: d4243104963a22f0a729f8e295f145938f2afe5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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-
|
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
|
-
|
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
|
|
data/asa_console.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.name = 'asa_console'
|
4
|
-
s.version = '0.
|
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', '~>
|
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 = '>=
|
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
|
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.
|
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:
|
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:
|
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:
|
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:
|
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.
|
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
|