awssh 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/awssh/command.rb +6 -2
- data/lib/awssh/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f894ca22433798b7e32a310da9ae28b3b525d3a
|
4
|
+
data.tar.gz: 7e0180c714b2ec0fafc0ed34a697f331936f9047
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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