commutateurs 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,10 +9,10 @@ module Commutateurs
9
9
  end
10
10
 
11
11
  class Base
12
- def initialize(host, credentials)
12
+ def initialize(host, credentials, verbose = false)
13
13
  @enable = credentials.enable
14
14
 
15
- @transport = Ssh.new
15
+ @transport = Ssh.new(verbose)
16
16
  @transport.host = host
17
17
  @transport.user = credentials.user
18
18
  @transport.password = credentials.password
@@ -24,7 +24,7 @@ module Commutateurs
24
24
  end
25
25
 
26
26
  class Cisco < Base
27
- def initialize(host, credentials)
27
+ def initialize(host, credentials, verbose = false)
28
28
  super
29
29
  @transport.default_prompt = /[#>]\s?\z/n
30
30
  end
@@ -54,7 +54,7 @@ module Commutateurs
54
54
  end
55
55
 
56
56
  class H3c < Base
57
- def initialize(host, credentials)
57
+ def initialize(host, credentials, verbose = false)
58
58
  super
59
59
  @transport.default_prompt = /(<.*>|\[.*\])$/
60
60
  end
@@ -5,7 +5,7 @@ module Commutateurs
5
5
  attr_accessor :user, :password, :host, :port
6
6
  attr_accessor :default_prompt, :timeout
7
7
 
8
- def initialize(verbose = false)
8
+ def initialize(verbose)
9
9
  @timeout = 10
10
10
  @verbose = verbose
11
11
  end
metadata CHANGED
@@ -1,80 +1,58 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: commutateurs
3
- version: !ruby/object:Gem::Version
4
- hash: 29
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 1
10
- version: 0.0.1
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Guillaume Rose
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2013-01-01 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2013-01-01 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: net-ssh
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &71537610 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 0
31
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
32
22
  type: :runtime
33
- version_requirements: *id001
23
+ prerelease: false
24
+ version_requirements: *71537610
34
25
  description: Library for accessing commutateurs
35
26
  email: guillaume.rose@gmail.com
36
27
  executables: []
37
-
38
28
  extensions: []
39
-
40
29
  extra_rdoc_files: []
41
-
42
- files:
30
+ files:
43
31
  - lib/commutateurs/device.rb
44
32
  - lib/commutateurs/ssh.rb
45
33
  - lib/commutateurs.rb
46
34
  homepage: http://www.github.com/guillaumerose/commutateurs
47
35
  licenses: []
48
-
49
36
  post_install_message:
50
37
  rdoc_options: []
51
-
52
- require_paths:
38
+ require_paths:
53
39
  - lib
54
- required_ruby_version: !ruby/object:Gem::Requirement
40
+ required_ruby_version: !ruby/object:Gem::Requirement
55
41
  none: false
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
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ required_rubygems_version: !ruby/object:Gem::Requirement
64
47
  none: false
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- hash: 3
69
- segments:
70
- - 0
71
- version: "0"
48
+ requirements:
49
+ - - ! '>='
50
+ - !ruby/object:Gem::Version
51
+ version: '0'
72
52
  requirements: []
73
-
74
53
  rubyforge_project:
75
- rubygems_version: 1.8.15
54
+ rubygems_version: 1.8.11
76
55
  signing_key:
77
56
  specification_version: 3
78
57
  summary: Library for accessing commutateurs
79
58
  test_files: []
80
-