commutateurs 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/commutateurs/device.rb +25 -0
  2. metadata +49 -27
@@ -83,4 +83,29 @@ module Commutateurs
83
83
  @transport.close
84
84
  end
85
85
  end
86
+
87
+ class Juniper < Base
88
+ def initialize(host, credentials, verbose = false)
89
+ super
90
+ @transport.default_prompt = /-> $/
91
+ end
92
+
93
+ def enable
94
+ end
95
+
96
+ def connect
97
+ @transport.connect
98
+ end
99
+
100
+ def configuration
101
+ end
102
+
103
+ def save
104
+ end
105
+
106
+ def disconnect
107
+ @transport.send 'exit'
108
+ @transport.close
109
+ end
110
+ end
86
111
  end
metadata CHANGED
@@ -1,58 +1,80 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: commutateurs
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.2
3
+ version: !ruby/object:Gem::Version
4
+ hash: 25
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 3
10
+ version: 0.0.3
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Guillaume Rose
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2013-01-01 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2013-02-01 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: net-ssh
16
- requirement: &71537610 !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
17
24
  none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 0
31
+ version: "0"
22
32
  type: :runtime
23
- prerelease: false
24
- version_requirements: *71537610
33
+ version_requirements: *id001
25
34
  description: Library for accessing commutateurs
26
35
  email: guillaume.rose@gmail.com
27
36
  executables: []
37
+
28
38
  extensions: []
39
+
29
40
  extra_rdoc_files: []
30
- files:
41
+
42
+ files:
31
43
  - lib/commutateurs/device.rb
32
44
  - lib/commutateurs/ssh.rb
33
45
  - lib/commutateurs.rb
34
46
  homepage: http://www.github.com/guillaumerose/commutateurs
35
47
  licenses: []
48
+
36
49
  post_install_message:
37
50
  rdoc_options: []
38
- require_paths:
51
+
52
+ require_paths:
39
53
  - lib
40
- required_ruby_version: !ruby/object:Gem::Requirement
54
+ required_ruby_version: !ruby/object:Gem::Requirement
41
55
  none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
46
- required_rubygems_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ hash: 3
60
+ segments:
61
+ - 0
62
+ version: "0"
63
+ required_rubygems_version: !ruby/object:Gem::Requirement
47
64
  none: false
48
- requirements:
49
- - - ! '>='
50
- - !ruby/object:Gem::Version
51
- version: '0'
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ hash: 3
69
+ segments:
70
+ - 0
71
+ version: "0"
52
72
  requirements: []
73
+
53
74
  rubyforge_project:
54
- rubygems_version: 1.8.11
75
+ rubygems_version: 1.8.15
55
76
  signing_key:
56
77
  specification_version: 3
57
78
  summary: Library for accessing commutateurs
58
79
  test_files: []
80
+