geordi 0.16.1 → 0.16.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZWZhZWY3ZTUwZTllY2QyMjNkNGQxNTE5NDcxNjNlZTVmYzM3NzE5Yw==
5
+ data.tar.gz: !binary |-
6
+ NWY4MjI5NWJiNWU1ODg1Yzg1NzY1MTQ3ZTkzMWMxZjdiMDk1MWUwNA==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ NjMzOGEyNjY4MWNjOGUyNjU1ZGM3ODhmMDNjOTcwMTE0OGU2MTZkMzYyN2Jh
10
+ NDQ2MGEyOGFjZGNkZTJmMjBjMDkyZjdiYzQ3YWYzNDM1MDMxY2Q2MTJlOGJk
11
+ MTllZGUxNmFjMTgzZWQ4ZDM3MDVkZjQwMTI1MjAwNjY0YzYwYzg=
12
+ data.tar.gz: !binary |-
13
+ YmU1Njk4ZGZhMzk3MGFjN2ZjZDg3NzZiZjAxMzQ4MmFlOWQ3Mjc3OWY1ZGE5
14
+ MTkyYzkwN2ExMTNhZTEzNmIzOTU0MjQzZDMyMDQ5N2MwNTI5MDgzYWZlYjRm
15
+ MDcxYmExNmM0OWQ2N2E4ZmI5YjI3ZDlhYjZjZTg2MDMzZjUyMWQ=
@@ -2,6 +2,7 @@ require 'rubygems'
2
2
  require 'bundler/setup'
3
3
  require 'capistrano'
4
4
  require 'singleton'
5
+ require 'highline/import'
5
6
 
6
7
  module Geordi
7
8
  module Capistrano
@@ -20,8 +21,8 @@ module Geordi
20
21
  @capistrano_config.fetch(:user)
21
22
  end
22
23
 
23
- def server
24
- @capistrano_config.find_servers(:roles => [:app]).first
24
+ def servers
25
+ @capistrano_config.find_servers(:roles => [:app])
25
26
  end
26
27
 
27
28
  def path
@@ -78,6 +79,16 @@ module Geordi
78
79
  exit 1
79
80
  end
80
81
  end
82
+
83
+ def select_server
84
+ choose do |menu|
85
+ config.servers.each do |server|
86
+ menu.choice(server) { server }
87
+ end
88
+ menu.default = '1'
89
+ menu.prompt = 'Connect to [1]: '
90
+ end
91
+ end
81
92
 
82
93
  def shell_for(*args)
83
94
  options = {}
@@ -87,7 +98,7 @@ module Geordi
87
98
 
88
99
  remote_command = args.join(' ').strip
89
100
 
90
- login = %(#{config.user}@#{config.server})
101
+ login = %(#{config.user}@#{select_server})
91
102
 
92
103
  commands = [ "cd #{config.path}" ]
93
104
  if remote_command == ''
@@ -1,3 +1,3 @@
1
1
  module Geordi
2
- VERSION = '0.16.1'
2
+ VERSION = '0.16.2'
3
3
  end
metadata CHANGED
@@ -1,28 +1,20 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: geordi
3
- version: !ruby/object:Gem::Version
4
- hash: 93
5
- prerelease:
6
- segments:
7
- - 0
8
- - 16
9
- - 1
10
- version: 0.16.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.16.2
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Henning Koch
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2013-10-10 00:00:00 +02:00
19
- default_executable:
11
+ date: 2013-11-11 00:00:00.000000000 Z
20
12
  dependencies: []
21
-
22
- description: Collection of command line tools we use in our daily work with Ruby, Rails and Linux at makandra.
23
- email:
13
+ description: Collection of command line tools we use in our daily work with Ruby,
14
+ Rails and Linux at makandra.
15
+ email:
24
16
  - henning.koch@makandra.de
25
- executables:
17
+ executables:
26
18
  - apache-site
27
19
  - b
28
20
  - cap-all
@@ -50,10 +42,8 @@ executables:
50
42
  - shell-for
51
43
  - tests
52
44
  extensions: []
53
-
54
45
  extra_rdoc_files: []
55
-
56
- files:
46
+ files:
57
47
  - .gitignore
58
48
  - Gemfile
59
49
  - LICENSE
@@ -92,39 +82,29 @@ files:
92
82
  - lib/geordi/firefox_for_selenium.rb
93
83
  - lib/geordi/gitpt.rb
94
84
  - lib/geordi/version.rb
95
- has_rdoc: true
96
85
  homepage: http://makandra.com
97
- licenses:
86
+ licenses:
98
87
  - MIT
88
+ metadata: {}
99
89
  post_install_message:
100
90
  rdoc_options: []
101
-
102
- require_paths:
91
+ require_paths:
103
92
  - lib
104
- required_ruby_version: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ">="
108
- - !ruby/object:Gem::Version
109
- hash: 3
110
- segments:
111
- - 0
112
- version: "0"
113
- required_rubygems_version: !ruby/object:Gem::Requirement
114
- none: false
115
- requirements:
116
- - - ">="
117
- - !ruby/object:Gem::Version
118
- hash: 3
119
- segments:
120
- - 0
121
- version: "0"
93
+ required_ruby_version: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ! '>='
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ required_rubygems_version: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ! '>='
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
122
103
  requirements: []
123
-
124
104
  rubyforge_project: geordi
125
- rubygems_version: 1.3.9.5
105
+ rubygems_version: 2.1.2
126
106
  signing_key:
127
- specification_version: 3
128
- summary: Collection of command line tools we use in our daily work with Ruby, Rails and Linux at makandra.
107
+ specification_version: 4
108
+ summary: Collection of command line tools we use in our daily work with Ruby, Rails
109
+ and Linux at makandra.
129
110
  test_files: []
130
-