awsssh 2.1.1 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +5 -13
  2. data/README.md +10 -2
  3. data/awsssh.gemspec +4 -4
  4. data/bin/awsssh +1 -1
  5. data/lib/awsssh.rb +31 -7
  6. metadata +7 -8
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YTMzY2U5MjNjMDU2ZDlmNGMyN2E3MDcxNThhMzA5OGY4OTRjMzRmZg==
5
- data.tar.gz: !binary |-
6
- Y2NhM2I3NGY0ZTk1OTYxODFkMDhhMWUwM2QzZTgwZDNhMzhiOTI3OQ==
2
+ SHA1:
3
+ metadata.gz: 648cbadb1d6c7dd15e713214c94844497c9adae2
4
+ data.tar.gz: 185e202c3b0220887cd20aec177328e0b148b9c1
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- ZDQyYjY1MjBiNDBmZmIwZjRjNjYzM2JlNGVkMzM4ZWUyMGQxZTYzMWVjNGJm
10
- OTA2N2JjNDAyZTI1YTQ0ZGVkYjZlMGQwOGQxMzRhNDliYmM4ZTY1NDg0N2I0
11
- ZDMyYzVmMDRmMzRkNmJhMzk4ZWJkNTVmMjY1MjY3ZTcyNmRmOWU=
12
- data.tar.gz: !binary |-
13
- MzY5YmYzZjc2Mjk3NDA0MjBjNTgyM2M3ZTY4MDRhODk1MzYwY2U4ZmRhNzQw
14
- NzAwNDgyM2Q5YjJlNmVhOTZlNGY4MzFhNzkzMDM5NDA0Njg1ZThhZDY4ZDQ3
15
- M2M3YmY2ZjRlN2ZlNDU5MTljZGNkYzEyZmI1ODE4ZGNlZTBkYzc=
6
+ metadata.gz: 44e2a2bab75ce69015abc3082703b913beb56cb69169d05d5af7c6acd738ff4b236e01015cd6efe045babd5bba7cd63bf203e3989b528565cff7023613555812
7
+ data.tar.gz: 9bb50ad0de96bc4b7fed678e856f1f323fdab85b718077f1f6ba6d6b316f1004041ec3069082bfbf6f5956f8ef7d42ccc0ec5fb43e8cf456b2547baccd6bb2cb
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # AWSSSH
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/awsssh.png)](http://badge.fury.io/rb/awsssh)
4
+
3
5
  Mit hilfe dieses Gems kann man sich auf alle (bekannten) AWS EC2 Instancen verbinden die man durch seine Configurationen erreichen darf.
4
6
  Momentan ist das beschränkt auf EC2 Instancen, die durch OpsWorks verwaltet werden.
5
7
 
@@ -29,10 +31,16 @@ Zeigt die Hilfe an
29
31
 
30
32
  ## Kontakt
31
33
 
32
- Sebastian Thiele (@sethiele)
34
+ Sebastian Thiele Twitter: (@sebat)
33
35
 
34
36
  ## Changelog
35
37
 
38
+ **2014-08-01 - v 2.1.2**
39
+ * [enh] Alias for `--list-servers` and `--list-accounts`
40
+
41
+ **2014-03-** - v 2.1.2
42
+ * [fix] alias with -
43
+
36
44
  **2014-03-05** - v 2.1.1
37
45
  * [enh] using thor as CLI Class
38
46
  * **New connection call** call `awsssh -s SERVER`
@@ -50,4 +58,4 @@ Sebastian Thiele (@sethiele)
50
58
  * [enh] first gem version
51
59
 
52
60
  **earlier**
53
- * Some experiences
61
+ * Some experiences
data/awsssh.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'awsssh'
3
- s.version = '2.1.1'
4
- s.date = '2014-03-05'
3
+ s.version = '2.1.2'
4
+ s.date = '2014-08-01'
5
5
  s.summary = "Connects you with OpsWorks EC2"
6
6
  s.description = "This will connects you with an EC2 instace"
7
7
  s.authors = ["Sebastian Thiele"]
@@ -9,11 +9,11 @@ Gem::Specification.new do |s|
9
9
  s.license = "MIT"
10
10
  s.files = `git ls-files`.split("\n")
11
11
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
12
- s.homepage = "https://github.com/infopark/support/tree/master/scripte/ruby/awsssh"
12
+ s.homepage = "https://github.com/sethiele/awsssh"
13
13
 
14
14
 
15
15
  s.add_runtime_dependency "net-ssh", "2.7.0"
16
16
  s.add_runtime_dependency "inifile", "2.0.2"
17
17
  s.add_runtime_dependency "aws-sdk", "1.35.0"
18
18
  s.add_runtime_dependency "thor", "0.18.1"
19
- end
19
+ end
data/bin/awsssh CHANGED
@@ -2,4 +2,4 @@
2
2
 
3
3
  require "awsssh"
4
4
 
5
- Awsssh.start(ARGV)
5
+ Awsssh.start(ARGV)
data/lib/awsssh.rb CHANGED
@@ -12,10 +12,34 @@ class Awsssh < Thor
12
12
  CONF_FILE = ENV['AWSSSH_CONFIG_FILE'] || "aws_config_"
13
13
 
14
14
  desc "-s SERVER [-a ACCOUNT]", "connect to a server"
15
- option :server, :aliases => :s, :desc => "(required) The server name to connect with"
16
- option :account, :aliases => :a, :desc => "Specify a account for a connection. Needet if the account don't came from the server name"
17
- option :list_accounts, :type => :boolean, :desc => "List all Accounts"
18
- option :list_servers, :desc => "List all Servers for a given Account"
15
+ option :server, :aliases => '-s', :desc => "(required) The server name to connect with"
16
+ option :account, :aliases => '-a', :desc => "Specify a account for a connection. Needet if the account don't came from the server name"
17
+ option :list_accounts, :aliases => '-k', :type => :boolean, :desc => "List all Accounts"
18
+ option :list_servers, :aliases => '-i', :desc => "List all Servers for a given Account", :banner => "ACCOUNT"
19
+ # option :check_status, :alias => '-c', :type => :string, :desc => "Give information when the server status has changed to target.", :banner => "STATUS"
20
+ long_desc <<-LONGDESC
21
+ # Connect to a Server:
22
+
23
+
24
+ > $ awsssh -s SERVER
25
+ \x5 This will connect you to a Server. This will work only if the first part of the server name is the same as the account name.
26
+
27
+ > $ awsssh -s SERVER -a ACCOUNT
28
+ \x5 With -a you can spezify a account to connect with. The server name don't play any role.
29
+
30
+ # List all Account:
31
+
32
+ > $ awsssh [--list-accounts|-k]
33
+ \x5 This will list all Accounts
34
+
35
+ # List all Servers for a Account
36
+
37
+ > $ awsssh [--list-servers|-i] ACCOUNT
38
+ \x5 List all Servers vor Account ACCOUNT
39
+
40
+ # Get notification when Server is in Status
41
+
42
+ LONGDESC
19
43
  def connect
20
44
  if options[:server]
21
45
  connecting(options[:server], options[:account])
@@ -157,8 +181,8 @@ class Awsssh < Thor
157
181
  if cnf = IniFile.load(CONFIG_DIR + CONF_FILE + account)
158
182
  cnf = cnf['default']
159
183
  return AWS::OpsWorks.new(
160
- access_key_id: cnf['aws_access_key_id'],
161
- secret_access_key: cnf['aws_secret_access_key'],
184
+ access_key_id: cnf['aws_access_key_id'],
185
+ secret_access_key: cnf['aws_secret_access_key'],
162
186
  region: cnf['region']
163
187
  )
164
188
  else
@@ -167,4 +191,4 @@ class Awsssh < Thor
167
191
  end
168
192
  end
169
193
  default_task :connect
170
- end
194
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awsssh
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Thiele
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-05 00:00:00.000000000 Z
11
+ date: 2014-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh
@@ -74,12 +74,12 @@ executables:
74
74
  extensions: []
75
75
  extra_rdoc_files: []
76
76
  files:
77
- - .gitignore
77
+ - ".gitignore"
78
78
  - README.md
79
79
  - awsssh.gemspec
80
80
  - bin/awsssh
81
81
  - lib/awsssh.rb
82
- homepage: https://github.com/infopark/support/tree/master/scripte/ruby/awsssh
82
+ homepage: https://github.com/sethiele/awsssh
83
83
  licenses:
84
84
  - MIT
85
85
  metadata: {}
@@ -89,19 +89,18 @@ require_paths:
89
89
  - lib
90
90
  required_ruby_version: !ruby/object:Gem::Requirement
91
91
  requirements:
92
- - - ! '>='
92
+ - - ">="
93
93
  - !ruby/object:Gem::Version
94
94
  version: '0'
95
95
  required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  requirements:
97
- - - ! '>='
97
+ - - ">="
98
98
  - !ruby/object:Gem::Version
99
99
  version: '0'
100
100
  requirements: []
101
101
  rubyforge_project:
102
- rubygems_version: 2.2.1
102
+ rubygems_version: 2.4.1
103
103
  signing_key:
104
104
  specification_version: 4
105
105
  summary: Connects you with OpsWorks EC2
106
106
  test_files: []
107
- has_rdoc: