commutateurs 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/commutateurs.rb +2 -0
- data/lib/commutateurs/asa.rb +30 -0
- metadata +13 -8
- checksums.yaml +0 -7
data/lib/commutateurs.rb
CHANGED
@@ -0,0 +1,30 @@
|
|
1
|
+
module Commutateurs
|
2
|
+
class ASA < Base
|
3
|
+
def initialize(host, credentials, verbose = false)
|
4
|
+
super
|
5
|
+
@transport.default_prompt = /[#>]\s?\z/n
|
6
|
+
end
|
7
|
+
|
8
|
+
def enable
|
9
|
+
@transport.command("enable", :prompt => /^Password:/)
|
10
|
+
@transport.command(@enable)
|
11
|
+
end
|
12
|
+
|
13
|
+
def connect
|
14
|
+
@transport.connect
|
15
|
+
end
|
16
|
+
|
17
|
+
def configuration
|
18
|
+
execute("terminal pager 0")
|
19
|
+
execute('show running-config')
|
20
|
+
end
|
21
|
+
|
22
|
+
def save
|
23
|
+
end
|
24
|
+
|
25
|
+
def disconnect
|
26
|
+
@transport.send 'exit'
|
27
|
+
@transport.close
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: commutateurs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Guillaume Rose
|
@@ -13,15 +14,17 @@ dependencies:
|
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: net-ssh
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
|
-
- - '>='
|
19
|
+
- - ! '>='
|
18
20
|
- !ruby/object:Gem::Version
|
19
21
|
version: '0'
|
20
22
|
type: :runtime
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
|
-
- - '>='
|
27
|
+
- - ! '>='
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '0'
|
27
30
|
description: Library for accessing commutateurs
|
@@ -39,30 +42,32 @@ files:
|
|
39
42
|
- lib/commutateurs/juniper.rb
|
40
43
|
- lib/commutateurs/brocade.rb
|
41
44
|
- lib/commutateurs/ironport.rb
|
45
|
+
- lib/commutateurs/asa.rb
|
42
46
|
- lib/commutateurs/ssh.rb
|
43
47
|
- lib/commutateurs.rb
|
44
48
|
homepage: http://www.github.com/guillaumerose/commutateurs
|
45
49
|
licenses:
|
46
50
|
- MIT
|
47
|
-
metadata: {}
|
48
51
|
post_install_message:
|
49
52
|
rdoc_options: []
|
50
53
|
require_paths:
|
51
54
|
- lib
|
52
55
|
required_ruby_version: !ruby/object:Gem::Requirement
|
56
|
+
none: false
|
53
57
|
requirements:
|
54
|
-
- - '>='
|
58
|
+
- - ! '>='
|
55
59
|
- !ruby/object:Gem::Version
|
56
60
|
version: '0'
|
57
61
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
|
+
none: false
|
58
63
|
requirements:
|
59
|
-
- - '>='
|
64
|
+
- - ! '>='
|
60
65
|
- !ruby/object:Gem::Version
|
61
66
|
version: '0'
|
62
67
|
requirements: []
|
63
68
|
rubyforge_project:
|
64
|
-
rubygems_version:
|
69
|
+
rubygems_version: 1.8.23
|
65
70
|
signing_key:
|
66
|
-
specification_version:
|
71
|
+
specification_version: 3
|
67
72
|
summary: Library for accessing commutateurs
|
68
73
|
test_files: []
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 8d5041d97aad110bea62814d84baaca8b3cdf6e4
|
4
|
-
data.tar.gz: 9d3299eea4d65e5c66827ba9054c5e025c998131
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 2e65c9c5c2df202d7efd72ee6ac20973ec7ecd047813a73d5fdbad3cd0aba952e075f8c740eb609d94cd926245c7ea571eb887c93e196277d4e69f562aee38cf
|
7
|
-
data.tar.gz: ea9471c41ccdd5e97a79123dd4ebdd6a0aa1946b72659ed8b6d2197e9a0a8c8ae19d3be9fb7c73a0fb6c6656127e3be28748618a7d2ce0e555bbedba7981c27d
|