vipnet_getter 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/vipnet_getter.rb +1 -1
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea7c82d98f3f9cdd3e8a65e4065d9dd24cda6cb9
4
- data.tar.gz: 64816099b5f465ce1383c1dc2e694d4027743df1
3
+ metadata.gz: 4be22db591c17046ec0bb3cd8e5fc814fee22f9d
4
+ data.tar.gz: 3690e4ab38c0e829da2b92e54dbe0497ef95e7bb
5
5
  SHA512:
6
- metadata.gz: b111c9a872efd3b0553287460335e10592a3e7c8cbbc7953693ec7df2e9dd6d9bab68b95b53ccde913bebe7b1fc45db5bfd2d46814b80bc8f71b057b8cbfaefa
7
- data.tar.gz: edc7e640683983ec7062ee7002fc7e188c0d07358b509ac8402039debb3dfa93b24838973211b401c36e9b10bee4e5a088539310311ad8606fd20be4f169db2e
6
+ metadata.gz: ad3351234798ff742f846ee513b649261a25593e0b81e80627ce44f56ec6e48cf4e3abba38b6f21842bd297be2447863824f6addb03bedb61e019cbe545f46f8
7
+ data.tar.gz: 96039f28b78e26d21e817d0eb230e4ce806e0b001454135c00dba407579aed54f2960004576c37d99e45106802808d71814a53b941e9e126f5027049bf87c50f
data/lib/vipnet_getter.rb CHANGED
@@ -5,9 +5,9 @@ class VipnetGetter
5
5
  def self.iplirconf(params)
6
6
  hostname = params[:hostname]
7
7
  password = params[:password]
8
+ username = params[:username] || "vipnet"
8
9
  output_file_path = params[:output_file_path]
9
10
 
10
- username = "vipnet"
11
11
  # adding digest to known_hosts if needed
12
12
  require "ruby_expect"
13
13
  exp_ssh_digest = RubyExpect::Expect.spawn("/usr/bin/ssh #{username}@#{hostname}")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vipnet_getter
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: '0.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Morozov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-16 00:00:00.000000000 Z
11
+ date: 2016-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby_expect
@@ -24,7 +24,7 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1'
27
- description: Allows to get configuration files like iplir.conf (and more) from ViPNet
27
+ description: Allows to get configuration files like iplir.conf (and more) from ViPNet
28
28
  products such as HW1000; no "enable" and "admin escape" needed.
29
29
  email: ntcomp12@gmail.com
30
30
  executables: []
@@ -55,5 +55,5 @@ rubyforge_project:
55
55
  rubygems_version: 2.5.1
56
56
  signing_key:
57
57
  specification_version: 4
58
- summary: Gem for getting data from ViPNet products
58
+ summary: Gem for getting data from ViPNet products
59
59
  test_files: []