f5-icontrol 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 64a859cf8eaedd6a75dfe561aa4d05b24c8c5f58
4
- data.tar.gz: 1d803e1f5daaf83d2586064f2fdcd144860dcfad
3
+ metadata.gz: 160d69b35270ab267f40fa78210edec5b437f42a
4
+ data.tar.gz: 903618319da6c650578e9528f66388196ecd4fd2
5
5
  SHA512:
6
- metadata.gz: e67d3afa14a057ecf4bae608b983ebd8814fb957d6bcb298a941ce77174ae5e98a3ee70d2fdb3ca6dbd388bd8eb45e365bdaaa2b8847690e162bb237d68432eb
7
- data.tar.gz: 3396456a17cb589d8173f99588b7805425e4019456a648f90baa1c61cc496c1b7cc54e0cfde3f4f7bb286773e12dda3f062e0589eb5f5d84b3cf91b2669bc4db
6
+ metadata.gz: 054c2d5a635de5598ed0b06f53b16cccc14db113dda7f674f11131bc158416c9342ddaf770a2f78172fd71495eceaf04d7b729da732c04db237b3e6a49387620
7
+ data.tar.gz: 7a129c736b58395e0e7e93e376b634ae3a81bcc29857c0f866faad6f54b44549590bd0e4fc32ffd8963e444da4c5640d39f61a4ddbc8affba70d01465af0243a
@@ -25,9 +25,9 @@ module F5
25
25
 
26
26
  def client
27
27
  return @client if @client
28
- config = YAML.load_file("#{ENV['HOME']}/.f5.yml")
28
+ config = YAML.load_file(options[:config])
29
29
  if config.key?('username') && options[:lb] == 'default'
30
- puts "Warning: credentials in .f5.yml should be put under a named load balancer."
30
+ puts "Warning: credentials in #{options[:config]} should be put under a named load balancer."
31
31
  configure_lb_as(config)
32
32
  else
33
33
  configure_lb_as config[options[:lb]]
@@ -433,6 +433,8 @@ module F5
433
433
  class Application < Thor
434
434
  class_option :lb, default: 'default'
435
435
 
436
+ class_option :config, :type => :string, :default => "#{ENV['HOME']}/.f5.yml", :desc => "Defines the location of the configuration file."
437
+
436
438
  desc "node SUBCOMMAND ...ARGS", "manage nodes"
437
439
  subcommand "node", Node
438
440
 
@@ -1,5 +1,5 @@
1
1
  module F5
2
2
  module Icontrol
3
- VERSION = '0.3.2'
3
+ VERSION = '0.3.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: f5-icontrol
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Walberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-02 00:00:00.000000000 Z
11
+ date: 2019-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: savon