awssh 0.1.3 → 0.1.4

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: 42f63e5a6909361777192e802e491f0044c8b408
4
- data.tar.gz: db5cf762cf3d8ab29d64aba1dadf8ad48c2c9cf1
3
+ metadata.gz: 5f894ca22433798b7e32a310da9ae28b3b525d3a
4
+ data.tar.gz: 7e0180c714b2ec0fafc0ed34a697f331936f9047
5
5
  SHA512:
6
- metadata.gz: 8975951061276bb73e6acff5172bfd35af9db7321b9d159ad80f047a0959ef8a1c1eabea107c3c1511129347ec11a98a1b4bd3678c941741b491f542fed3a8c2
7
- data.tar.gz: 827941515f2272257cf43c1e18995e9929ad1196bce407ffa5ec73ac4e0cb0c109fa3b20551ec8d97c7e20d2a30f887007a8bae5f8e6bd37d4cc2baf30f3b482
6
+ metadata.gz: a227315cecef6e8d061fdff3ff2c03f9ef4ce62f2cc36982da9552585853952a82c8be2d0b0d90c064eab4c6311620af4a2e95ee6b69769747a1bd8357db095b
7
+ data.tar.gz: bb7d257d92821373179507b36686e324a0ab263ef2592221f18b63190a3f195b68a3ca1d19040caf686f1078d33b4f2696006e9752ea78d4a692ad1a2f7de29b
data/lib/awssh/command.rb CHANGED
@@ -17,6 +17,9 @@ module Awssh
17
17
  domain: 'example.com'
18
18
  }.stringify_keys
19
19
 
20
+ @config_file = File.expand_path(@options[:config])
21
+ @config.merge!(YAML.load_file(@config_file)) if File.exists?(@config_file)
22
+
20
23
  OptionParser.new do |opts|
21
24
  opts.banner = "Usage: awssh [options] [search terms]"
22
25
 
@@ -52,11 +55,12 @@ module Awssh
52
55
  puts "created config file: #{path}"
53
56
  exit 0
54
57
  end
58
+ opts.on('-u', '--user', 'override user setting') do |u|
59
+ @config['user'] = u
60
+ end
55
61
  end.parse!(argv)
56
62
 
57
63
  @search = argv
58
- @config_file = File.expand_path(@options[:config])
59
- @config.merge!(YAML.load_file(@config_file)) if File.exists?(@config_file)
60
64
 
61
65
  if @options[:verbose]
62
66
  p @search
data/lib/awssh/version.rb CHANGED
@@ -2,7 +2,7 @@ module Awssh
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 3
5
+ TINY = 4
6
6
  TAG = nil
7
7
  LIST = [MAJOR, MINOR, TINY, TAG].compact
8
8
  STRING = LIST.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awssh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shawn Catanzarite