aws-ssh-resolver 0.0.3 → 0.0.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 +4 -4
- data/README.md +1 -1
- data/lib/cli/aws-ssh-resolver-cli.rb +12 -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: f582b2df140629d90d8f1249b98da73ec17b60c7
|
4
|
+
data.tar.gz: 327dcaf4d43b587cacd90ee09632cca1e1a0563a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e048aad8be89b9f776b5578706713ba8e1365f2639b3aae9aaec4fa23bbdc7ae8b6532dfd1840999efe17392938072048fb370dc8a7cf45dddc8ba10d2eb37f
|
7
|
+
data.tar.gz: 943802103808035868a2feb9fc6553a1a1a44742b7d68ea7987d17385942c18078d49d34a5922bc83faae0c3934e73a8d765bae326e504302d5bafe35f3ecce0
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# aws-ssh-resolver - Resolve AWS EC2 HostNames for OpenSSH configuration - $Release:0.0.
|
1
|
+
# aws-ssh-resolver - Resolve AWS EC2 HostNames for OpenSSH configuration - $Release:0.0.4$
|
2
2
|
|
3
3
|
`aws-ssh-resolver` keeps AWS EC2 HostNames in OpenSSH configuration
|
4
4
|
file in sync with Amazon cloud making it easier for to use OpenSSH,
|
@@ -13,7 +13,7 @@ class Cli < Thor
|
|
13
13
|
DEFAULT_SSH_CONFIG_INIT = "ssh/config.init"
|
14
14
|
MAGIC_START = "# +++ aws-ssh-resolver-cli update start here +++"
|
15
15
|
MAGIC_END = "# +++ aws-ssh-resolver-cli update end here +++"
|
16
|
-
DEFAULT_DESCRIBE_INSTANCES = "aws ec2 describe-instances --filters 'Name=tag-key,Values=Name'"
|
16
|
+
DEFAULT_DESCRIBE_INSTANCES = "aws ec2 describe-instances --filters 'Name=instance-state-name,Values=running' 'Name=tag-key,Values=Name'"
|
17
17
|
DEFAULT_HOST_TAG = "Name"
|
18
18
|
|
19
19
|
# ------------------------------------------------------------------
|
@@ -23,6 +23,17 @@ class Cli < Thor
|
|
23
23
|
super
|
24
24
|
@logger = getLogger( PROGNAME, options )
|
25
25
|
end
|
26
|
+
|
27
|
+
# ------------------------------------------------------------------
|
28
|
+
# version
|
29
|
+
# http://stackoverflow.com/questions/22809972/adding-a-version-option-to-a-ruby-thor-cli
|
30
|
+
|
31
|
+
map %w[--version -v] => :__print_version
|
32
|
+
|
33
|
+
desc "--version, -v", "print the version"
|
34
|
+
def __print_version
|
35
|
+
puts File.readlines( File.join File.dirname(__FILE__), "../../VERSION" ).join( " " )
|
36
|
+
end
|
26
37
|
|
27
38
|
# ------------------------------------------------------------------
|
28
39
|
# make two thor tasks share options?
|