sesh 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/Session.vim +424 -0
- data/lib/sesh.rb +4 -1
- data/lib/sesh/assets/sample.yml +3 -3
- data/lib/sesh/cli.rb +27 -6
- data/lib/sesh/inferences.rb +5 -2
- data/lib/sesh/ssh_control.rb +23 -16
- data/lib/sesh/tmux_control.rb +16 -7
- data/lib/sesh/version.rb +1 -1
- data/sesh.gemspec +6 -6
- metadata +18 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9b86406a5da72abaef21548fc671547938682d3
|
4
|
+
data.tar.gz: e9dc1a0e96b952d81f8e657e2949a027601118e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fc49b1c47e4f9374f8607be20673efb7356aafe0c1e10e203aa5783b876efd9250487417ab05182b394ba8c683e719b2b1d84248bbeef86970707205503a6aa
|
7
|
+
data.tar.gz: f68fa4999d3abe476f5a88489771238947c1d0b7a0811079351f2563ead3581279cd3de2d4ec3482e57000592bfc452770d1a55002d6ace51b93d942d2902c0c
|
data/Gemfile.lock
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
sesh (0.3.
|
5
|
-
awesome_print
|
6
|
-
colorize
|
7
|
-
deep_merge
|
4
|
+
sesh (0.3.2)
|
5
|
+
awesome_print (~> 1.6)
|
6
|
+
colorize (~> 0.7.7)
|
7
|
+
deep_merge (~> 1.0)
|
8
8
|
tmuxinator (~> 0.6.9)
|
9
9
|
|
10
10
|
GEM
|
@@ -40,7 +40,7 @@ PLATFORMS
|
|
40
40
|
DEPENDENCIES
|
41
41
|
bundler (~> 1.10)
|
42
42
|
rake (~> 10.0)
|
43
|
-
rspec
|
43
|
+
rspec (~> 3.3)
|
44
44
|
sesh!
|
45
45
|
|
46
46
|
BUNDLED WITH
|
data/Session.vim
ADDED
@@ -0,0 +1,424 @@
|
|
1
|
+
let SessionLoad = 1
|
2
|
+
if &cp | set nocp | endif
|
3
|
+
let s:so_save = &so | let s:siso_save = &siso | set so=0 siso=0
|
4
|
+
let v:this_session=expand("<sfile>:p")
|
5
|
+
silent only
|
6
|
+
cd ~/Sites/sesh
|
7
|
+
if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == ''
|
8
|
+
let s:wipebuf = bufnr('%')
|
9
|
+
endif
|
10
|
+
set shortmess=aoO
|
11
|
+
badd +2 lib/sesh/version.rb
|
12
|
+
badd +1 ~/Sites/energy_innovation_award/index.html
|
13
|
+
badd +1 ~/Sites/energy_innovation_award/css/custom.css
|
14
|
+
badd +1 ~/Sites/energy_innovation_award/about.html
|
15
|
+
badd +1 ~/Sites/energy_innovation_award/contact.html
|
16
|
+
badd +1 ~/Sites/energy_innovation_award/form2.html
|
17
|
+
badd +1 ~/Sites/energy_innovation_award/news.html
|
18
|
+
badd +1 ~/Sites/energy_innovation_award/privacy-statement.html
|
19
|
+
badd +1 ~/Sites/energy_innovation_award/register.html
|
20
|
+
badd +1 ~/Sites/energy_innovation_award/site-accessibility.html
|
21
|
+
badd +1 ~/Sites/vrat/spec/spec_helper.rb
|
22
|
+
badd +1 ~/Sites/theriverboat_v2/db/schema.rb
|
23
|
+
badd +1 ~/Sites/theriverboat_v2/app/models/ticket.rb
|
24
|
+
badd +1 ~/Sites/theriverboat_v2/app/models/payment.rb
|
25
|
+
badd +1 ~/Sites/theriverboat_v2/Gemfile
|
26
|
+
badd +1 ~/Sites/theriverboat_v2/app/controllers/payments_controller.rb
|
27
|
+
badd +1 ~/Sites/theriverboat_v2/app/views/tickets/new.html.haml
|
28
|
+
badd +1 ~/Sites/theriverboat_v2/app/controllers/tickets_controller.rb
|
29
|
+
badd +1 ~/Sites/theriverboat_v2/app/views/tickets/_payment_errors.html.haml
|
30
|
+
badd +1 ~/Sites/theriverboat_v2/app/assets/javascripts/payments.js.coffee
|
31
|
+
badd +1 ~/Sites/theriverboat_v2/app/assets/javascripts/tickets.js.coffee
|
32
|
+
badd +1 ~/Sites/theriverboat_v2/app/assets/stylesheets/bootstrap-overrides.scss
|
33
|
+
badd +1 ~/Sites/theriverboat_v2/app/assets/javascripts/shared.js.coffee
|
34
|
+
badd +1 ~/Sites/theriverboat_v2/app/assets/javascripts/home.js.coffee
|
35
|
+
badd +1 ~/Sites/theriverboat_v2/app/assets/javascripts/event_booking_categories.js.coffee
|
36
|
+
badd +1 ~/Sites/theriverboat_v2/app/assets/javascripts/event_bookings.js.coffee
|
37
|
+
badd +1 ~/Sites/theriverboat_v2/app/views/layouts/application.html.haml
|
38
|
+
badd +1 ~/Sites/theriverboat_v2/app/assets/javascripts/admin/users.js.coffee
|
39
|
+
badd +1 ~/Sites/theriverboat_v2/app/helpers/application_helper.rb
|
40
|
+
badd +1 ~/Sites/theriverboat_v2/app/controllers/contact_messages_controller.rb
|
41
|
+
badd +1 ~/Sites/theriverboat_v2/app/controllers/application_controller.rb
|
42
|
+
badd +1 ~/Sites/theriverboat_v2/app/controllers/concerns/recaptcha_verification.rb
|
43
|
+
badd +1 ~/Sites/theriverboat_v2/app/controllers/event_bookings_controller.rb
|
44
|
+
badd +1 ~/Sites/theriverboat_v2/app/views/event_bookings/new.html.haml
|
45
|
+
badd +1 ~/Sites/theriverboat_v2/app/views/event_bookings/_form.html.haml
|
46
|
+
badd +1 ~/Sites/theriverboat_v2/spec/helpers/payments_helper_spec.rb
|
47
|
+
badd +1 ~/Sites/theriverboat_v2/spec/features/events_spec.rb
|
48
|
+
badd +1 ~/Sites/theriverboat_v2/spec/features/tickets_spec.rb
|
49
|
+
badd +1 ~/Sites/theriverboat_v2/spec/models/ticket_spec.rb
|
50
|
+
badd +1 ~/Sites/theriverboat_v2/spec/models/users_spec.rb
|
51
|
+
badd +1 ~/Sites/theriverboat_v2/spec/factories/tickets.rb
|
52
|
+
badd +1 ~/Sites/theriverboat_v2/spec/factories/payments.rb
|
53
|
+
badd +1 ~/Sites/theriverboat_v2/app/models/user.rb
|
54
|
+
badd +1 ~/Sites/theriverboat_v2/spec/controllers/tickets_controller_spec.rb
|
55
|
+
badd +1 ~/Sites/theriverboat_v2/spec/controllers/admin/tickets_controller_spec.rb
|
56
|
+
badd +1 ~/Sites/theriverboat_v2/spec/features/users_spec.rb
|
57
|
+
badd +1 ~/Sites/theriverboat_v2/app/controllers/admin/tickets_controller.rb
|
58
|
+
badd +1 ~/Sites/theriverboat_v2/spec/features/twilio_spec.rb
|
59
|
+
badd +1 ~/Sites/theriverboat_v2/app/controllers/twilio_controller.rb
|
60
|
+
badd +1 ~/Sites/theriverboat_v2/config/routes.rb
|
61
|
+
badd +1 ~/Sites/theriverboat_v2/spec/features/event_bookings_spec.rb
|
62
|
+
badd +1 ~/Sites/theriverboat_v2/spec/spec_helper.rb
|
63
|
+
badd +1 ~/.rvm/gems/ruby-2.1.0/gems/devise-3.2.4/lib/devise/test_helpers.rb
|
64
|
+
badd +1 ~/Sites/theriverboat_v2/spec/support/features/devise_helpers.rb
|
65
|
+
badd +1 ~/Sites/theriverboat_v2/spec/models/payment_spec.rb
|
66
|
+
badd +1 ~/Sites/theriverboat_v2/app/models/admin/activity.rb
|
67
|
+
badd +1 ~/Sites/theriverboat_v2/spec/factories/users.rb
|
68
|
+
badd +1 ~/Sites/theriverboat_v2/spec/factories/events.rb
|
69
|
+
badd +1 ~/Sites/theriverboat_v2/config/secrets.yml
|
70
|
+
badd +1 ~/Sites/theriverboat_v2/config/initializers/stripe.rb
|
71
|
+
badd +1 ~/Sites/theriverboat_v2/app/views/admin/events/_form.html.haml
|
72
|
+
badd +1 ~/Sites/theriverboat_v2/app/assets/javascripts/application.js
|
73
|
+
badd +1 ~/Sites/theriverboat_v2/app/assets/javascripts/admin/events.js.coffee
|
74
|
+
badd +1 ~/Sites/theriverboat_v2/app/views/ticket_codes/_cocoon_table.html.haml
|
75
|
+
badd +1 ~/Sites/theriverboat_v2/app/views/tickets/_ticket_code_fields.html.haml
|
76
|
+
badd +1 ~/Sites/theriverboat_v2/app/views/payments/_card_storage_fields.html.haml
|
77
|
+
badd +1 ~/Sites/theriverboat_v2/app/helpers/tickets_helper.rb
|
78
|
+
badd +1 ~/Sites/theriverboat_v2/app/helpers/events_helper.rb
|
79
|
+
badd +1 ~/Sites/theriverboat_v2/app/helpers/admin/users_helper.rb
|
80
|
+
badd +1 ~/Sites/theriverboat_v2/app/helpers/refund_requests_helper.rb
|
81
|
+
badd +1 ~/Sites/theriverboat_v2/app/models/ticket_code.rb
|
82
|
+
badd +1 ~/Sites/theriverboat_v2/app/views/admin/tickets/_table_row.html.haml
|
83
|
+
badd +1 ~/Sites/theriverboat_v2/app/models/event.rb
|
84
|
+
badd +1 ~/Sites/theriverboat_v2/app/views/devise/passwords/new.html.haml
|
85
|
+
badd +1 ~/Sites/theriverboat_v2/app/views/devise/sessions/new.html.haml
|
86
|
+
badd +1 ~/Sites/theriverboat_v2/app/views/devise/passwords/edit.html.haml
|
87
|
+
badd +1 ~/Sites/theriverboat_v2/test/fixtures/users.yml
|
88
|
+
badd +1 ~/Sites/theriverboat_v2/spec/controllers/twilio_controller_spec.rb
|
89
|
+
badd +1 ~/Sites/theriverboat_v2/spec/factories/event_bookings.rb
|
90
|
+
badd +1 ~/Sites/theriverboat_v2/spec/factories/promo_codes.rb
|
91
|
+
badd +1 ~/Sites/theriverboat_v2/app/views/admin/tickets/checkin.html.haml
|
92
|
+
badd +1 ~/Sites/theriverboat_v2/app/mailers/base_mailer.rb
|
93
|
+
badd +1 ~/Sites/theriverboat_v2/config/schedule.rb
|
94
|
+
badd +1 ~/Sites/theriverboat_v2/config/environments/development.rb
|
95
|
+
badd +1 ~/Sites/theriverboat_v2/app/models/site_configuration.rb
|
96
|
+
badd +1 ~/Sites/theriverboat_v2/db/migrate/20140618143026_add_google_credentials_to_site_configurations.rb
|
97
|
+
badd +1 ~/Sites/theriverboat_v2/app/controllers/site_configurations_controller.rb
|
98
|
+
badd +1 ~/Sites/theriverboat_v2/app/controllers/admin/site_configurations_controller.rb
|
99
|
+
badd +1 ~/Sites/theriverboat_v2/app/views/admin/activities/index.html.haml
|
100
|
+
badd +1 ~/Sites/theriverboat_v2/app/views/admin/events/index.html.haml
|
101
|
+
badd +1 ~/Sites/theriverboat_v2/app/views/shared/_date_range_filter.html.haml
|
102
|
+
badd +1 ~/Sites/theriverboat_v2/app/assets/javascripts/daterangepicker.js
|
103
|
+
badd +1 ~/Sites/theriverboat_v2/app/assets/javascripts/moment-duration-format.js
|
104
|
+
badd +1 ~/Sites/theriverboat_v2/app/assets/stylesheets/daterangepicker-bs3.css
|
105
|
+
badd +1 ~/Sites/theriverboat_v2/app/assets/stylesheets/application.css
|
106
|
+
badd +1 ~/Sites/theriverboat_v2/app/controllers/admin/activities_controller.rb
|
107
|
+
badd +1 ~/Sites/theriverboat_v2/spec/factories/photos.rb
|
108
|
+
badd +1 ~/Sites/theriverboat_v2/Gemfile.lock
|
109
|
+
badd +1 ~/Sites/theriverboat_v2/config/initializers/simple_form_fileinput.rb
|
110
|
+
badd +1 ~/Sites/InquireTi/app_src/controllers/index.coffee
|
111
|
+
badd +1 ~/Sites/InquireTitanium/app_src/controllers/index.coffee
|
112
|
+
badd +1 ~/Sites/InquireTitanium/app_src/views/index.haml
|
113
|
+
badd +1 ~/Sites/InquireTitanium/app_src/controllers/login.coffee
|
114
|
+
badd +1 ~/Sites/InquireTitanium/app_src/views/login.haml
|
115
|
+
badd +1 ~/Sites/InquireTitanium/app/views/index.xml
|
116
|
+
badd +1 ~/dotfiles/tmuxinator/InquireTitanium.yml
|
117
|
+
badd +1 ~/Sites/InquireTitanium/\[Vundle]\ Installer
|
118
|
+
badd +1 ~/Sites/InquireTitanium/app/views/login.xml
|
119
|
+
badd +1 ~/Sites/InquireTitanium/app/styles/app.tss
|
120
|
+
badd +1 ~/Sites/InquireTitanium/app_src/styles/login.tss.coffee
|
121
|
+
badd +1 ~/Sites/InquireTitanium/app/styles/login.tss.js
|
122
|
+
badd +1 ~/Sites/InquireTitanium/app/styles/login.tss
|
123
|
+
badd +1 ~/Sites/InquireTitanium/app/controllers/login.js
|
124
|
+
badd +1 ~/Sites/InquireTitanium/app/controllers/index.js
|
125
|
+
badd +1 ~/Sites/InquireTitanium/app_src/controllers/app.coffee
|
126
|
+
badd +1 ~/Sites/InquireTitanium/app/controllers/app.js
|
127
|
+
badd +1 ~/Sites/InquireTitanium/app/alloy.js
|
128
|
+
badd +1 \'/Users/smit1625/Sites/InquireTitanium/app_src/migrations/201507190000000_users.coffee\'
|
129
|
+
badd +1 \'/Users/smit1625/Sites/InquireTitanium/app_src/models/users.coffee\'
|
130
|
+
badd +1 ~/Sites/InquireTitanium/app_src/models/users.coffee
|
131
|
+
badd +1 ~/Sites/InquireTitanium/app_src/migrations/20150719000000_api_keys.coffee
|
132
|
+
badd +1 \'/Users/smit1625/Sites/InquireTitanium/app_src/models/api_keys.coffee\'
|
133
|
+
badd +1 ~/Sites/InquireTitanium/app_src/models/api_keys.coffee
|
134
|
+
badd +1 \'/Users/smit1625/Sites/InquireTitanium/app_src/migrations/20150719172900_users.coffee\'
|
135
|
+
badd +1 ~/Sites/InquireTitanium/app_src/migrations/20150719172900_users.coffee
|
136
|
+
badd +1 \'/Users/smit1625/Sites/InquireTitanium/app_src/migrations/20150719000000_api_keys.coffee\'
|
137
|
+
badd +1 ~/Sites/InquireTitanium/app/styles/index.tss
|
138
|
+
badd +1 ~/Sites/InquireTitanium/app_src/styles/index.tss.coffee
|
139
|
+
badd +1 ~/Sites/InquireTitanium/app/config.json
|
140
|
+
badd +1 ~/Sites/InquireTitanium/app/README
|
141
|
+
badd +1 \'/Users/smit1625/Sites/InquireTitanium/app/lib/cryptojs-sha1.js\'
|
142
|
+
badd +1 \'/Users/smit1625/Sites/InquireTitanium/app/assets/components/cryptojs-base64.js\'
|
143
|
+
badd +1 ~/Sites/InquireTitanium/app/assets/components/crypto-sha1.js
|
144
|
+
badd +1 ~/Sites/InquireTitanium/app_src/models/questions.coffee
|
145
|
+
badd +1 ~/Sites/InquireTi/app/alloy.js
|
146
|
+
badd +1 ~/Sites/InquireTi/app_src/controllers/app.coffee
|
147
|
+
badd +1 ~/Sites/InquireTi/app/styles/login.tss
|
148
|
+
badd +1 ~/Sites/InquireTi/app_src/styles/login.tss.coffee
|
149
|
+
badd +1 ~/Sites/InquireTi/app_src/controllers/login.coffee
|
150
|
+
badd +1 ~/Sites/InquireTi/app_src/models/users.coffee
|
151
|
+
badd +1 ~/Sites/InquireTitanium/tiapp.xml
|
152
|
+
badd +1 ~/Sites/InquireTitanium/Resources/app.js
|
153
|
+
badd +1 ~/Sites/InquireTi/app_src/models/api_keys.coffee
|
154
|
+
badd +1 ~/Sites/InquireTi/app_src/styles/index.tss.coffee
|
155
|
+
badd +1 ~/Sites/InquireTi/app_src/styles/app.tss.coffee
|
156
|
+
badd +1 ~/Sites/InquireTi/app_src/views/index.haml
|
157
|
+
badd +1 \'/Users/smit1625/Sites/InquireTi/app_src/views/questions.haml\'
|
158
|
+
badd +1 ~/Sites/InquireTi/app_src/views/questions.haml
|
159
|
+
badd +1 ~/Sites/InquireTi/app_src/controllers/questions.coffee
|
160
|
+
badd +1 ~/Sites/InquireTi/app/views/questions.xml
|
161
|
+
badd +1 \'/Users/smit1625/Sites/InquireTi/app_src/styles/questions.tss.coffee\'
|
162
|
+
badd +1 ~/Sites/InquireTi/app_src/styles/questions.tss.coffee
|
163
|
+
badd +1 ~/Sites/InquireTi/tiapp.xml
|
164
|
+
badd +1 ~/Sites/InquireTi/app/styles/questions.tss
|
165
|
+
badd +1 ~/Sites/InquireTi/app_src/views/account.haml
|
166
|
+
badd +1 ~/Sites/InquireTi/app/styles/app.tss
|
167
|
+
badd +1 \'/Users/smit1625/Sites/InquireTi/app_src/controllers/account.rb\'
|
168
|
+
badd +1 ~/Sites/InquireTi/app_src/controllers/account.coffee
|
169
|
+
badd +1 ~/Sites/InquireTi/app_src/controllers/home.coffee
|
170
|
+
badd +1 ~/Sites/InquireTi/app_src/views/home.haml
|
171
|
+
badd +1 ~/Sites/InquireTi/app_src/styles/home.tss.coffee
|
172
|
+
badd +1 ~/Sites/InquireTi/app_src/views/people.haml
|
173
|
+
badd +1 ~/Sites/InquireTi/app_src/controllers/people.coffee
|
174
|
+
badd +1 ~/Sites/InquireTi/app_src/styles/people.tss.coffee
|
175
|
+
badd +1 ~/Sites/InquireTi/\'
|
176
|
+
badd +1 ~/Sites/InquireTi/app_src/models/influencers.coffee
|
177
|
+
badd +1 ~/Sites/InquireTi/app_src/views/influencer.haml
|
178
|
+
badd +1 ~/Sites/InquireTi/app_src/controllers/influencer.coffee
|
179
|
+
badd +1 ~/Sites/InquireTi/app_src/views/answers.haml
|
180
|
+
badd +1 ~/Sites/InquireTi/app_src/controllers/answers.coffee
|
181
|
+
badd +1 ~/Sites/InquireTi/app_src/styles/influencer.tss.coffee
|
182
|
+
badd +1 ~/Sites/InquireTi/app_src/controllers/ask.coffee
|
183
|
+
badd +1 ~/Sites/InquireTi/app_src/views/ask.haml
|
184
|
+
badd +1 ~/Sites/InquireTi/app_src/styles/ask.tss.coffee
|
185
|
+
badd +1 ~/Sites/InquireTi/app_src/views/question.haml
|
186
|
+
badd +1 ~/Sites/InquireTi/app_src/views/login.haml
|
187
|
+
badd +1 ~/Sites/InquireTi/compile_config.yml
|
188
|
+
badd +1 ~/Sites/InquireTi/app_src/views/registration.haml
|
189
|
+
badd +1 ~/Sites/InquireTi/app_src/controllers/registration.coffee
|
190
|
+
badd +1 ~/Sites/InquireTi/app_src/styles/registration.tss.coffee
|
191
|
+
badd +1 ~/Sites/InquireTi/app_src/views/start.haml
|
192
|
+
badd +1 ~/Sites/InquireTi/app_src/controllers/start.coffee
|
193
|
+
badd +1 ~/Sites/InquireTi/\[Vundle]\ Installer
|
194
|
+
badd +1 ~/Sites/InquireTi/app_src/models/questions.coffee
|
195
|
+
badd +1 drillbit/tests/foo.js
|
196
|
+
badd +1 ~/Sites/InquireTi/app/controllers/influencer.js
|
197
|
+
badd +1 ~/Sites/InquireTi/app/controllers/people.js
|
198
|
+
badd +1 ~/Sites/InquireTi/app_src/models/influencer_categories.coffee
|
199
|
+
badd +1 ~/Sites/InquireTi/app_src/views/interests.haml
|
200
|
+
badd +1 ~/Sites/InquireTi/app_src/controllers/interests.coffee
|
201
|
+
badd +1 ~/Sites/InquireTi/app_src/controllers/explore.coffee
|
202
|
+
badd +1 ~/Sites/InquireTi/app_src/styles/interests.tss.coffee
|
203
|
+
badd +1 ~/Sites/InquireTi/app_src/views/explore.haml
|
204
|
+
badd +1 ~/Sites/InquireTi/app_src/controllers/popular.coffee
|
205
|
+
badd +1 ~/Sites/InquireTi/app/controllers/interests.js
|
206
|
+
badd +1 ~/Sites/InquireTi/app/controllers/explore.js
|
207
|
+
badd +1 ~/Sites/InquireTi/app_src/styles/explore.tss.coffee
|
208
|
+
badd +1 \'/Users/smit1625/Sites/InquireTi/app_src/views/popular.haml\'
|
209
|
+
badd +1 ~/Sites/InquireTi/app/controllers/app.js
|
210
|
+
badd +1 ~/Sites/InquireTi/app_src/views/popular.haml
|
211
|
+
badd +1 ~/Sites/InquireTi/app_src/views/interest.haml
|
212
|
+
badd +1 ~/Sites/InquireTi/app_src/styles/interest.tss.coffee
|
213
|
+
badd +1 ~/Sites/InquireTi/app_src/controllers/interest.coffee
|
214
|
+
badd +1 ~/Sites/InquireTi/app/README
|
215
|
+
badd +1 \'/Users/smit1625/Sites/InquireTi/app_src/lib/ui_components/content_switcher.coffee\'
|
216
|
+
badd +1 ~/Sites/InquireTi/app_src/lib/ui_components/content_switcher.coffee
|
217
|
+
badd +1 ~/Sites/InquireTi/app_src/lib/ui_components/control_bar.coffee
|
218
|
+
badd +1 ~/Sites/InquireTi/app_src/lib/ui_components/interests_grid.coffee
|
219
|
+
badd +1 ~/Sites/InquireTi/app_src/lib/view_helpers.coffee
|
220
|
+
badd +1 ~/Sites/InquireTi/app_src/lib/api_helpers.coffee
|
221
|
+
badd +1 ~/Sites/InquireTi/app_src/lib/user_auth.coffee
|
222
|
+
badd +1 ~/Sites/InquireTi/app_src/lib/ui_components/photo_header.coffee
|
223
|
+
badd +1 ~/Sites/InquireTi/app/lib/api_helpers.js
|
224
|
+
badd +1 ~/Sites/InquireTi/app_src/lib/ui_components/question_row.coffee
|
225
|
+
badd +1 ~/Sites/InquireTi/app_src/lib/ui_components/platinum_ui_component.coffee
|
226
|
+
badd +1 ~/Sites/InquireTi/app/lib/ui_components/platinum_ui_component.js
|
227
|
+
badd +1 ~/Sites/InquireTi/app_src/lib/ui_components/answerable_question_row.coffee
|
228
|
+
badd +281 ~/Sites/polygallery/test/dummy/spec/features/events_spec.rb
|
229
|
+
badd +6 ~/Sites/polygallery/app/controllers/concerns/polygallery/strong_params.rb
|
230
|
+
badd +33 ~/Sites/polygallery/test/dummy/app/controllers/events_controller.rb
|
231
|
+
badd +1 ~/Sites/polygallery/test/dummy/app/views/events/_form.html.haml
|
232
|
+
badd +1 ~/Sites/polygallery/test/dummy/app/views/events/_simple_form.html.haml
|
233
|
+
badd +1 ~/Sites/polygallery/lib/polygallery/view_helpers.rb
|
234
|
+
badd +1 ~/Sites/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml
|
235
|
+
badd +1 ~/Sites/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml
|
236
|
+
badd +1 ~/Sites/polygallery/test/dummy/app/assets/javascripts/home.js
|
237
|
+
badd +1 ~/Sites/polygallery/test/dummy/app/assets/javascripts/events.js
|
238
|
+
badd +1 ~/Sites/polygallery/test/dummy/app/assets/javascripts/bootstrap.min.js
|
239
|
+
badd +1 ~/Sites/polygallery/test/dummy/app/assets/javascripts/application.js
|
240
|
+
badd +37 ~/Sites/polygallery/app/models/concerns/polygallery/acts_as_polyphoto.rb
|
241
|
+
badd +63 ~/Sites/polygallery/lib/polygallery/has_polygallery.rb
|
242
|
+
badd +1 ~/Sites/polygallery/spec/lib/has_polygallery_spec.rb
|
243
|
+
badd +34 ~/Sites/polygallery/test/dummy/spec/models/events_spec.rb
|
244
|
+
badd +27 ~/Sites/polygallery/test/dummy/spec/spec_helper.rb
|
245
|
+
badd +1 ~/Sites/polygallery/test/dummy/spec/factories/polygallery/photos.rb
|
246
|
+
badd +6 ~/Sites/polygallery/lib/polygallery/factories/polygallery/photos.rb
|
247
|
+
badd +34 ~/Sites/polygallery/test/dummy/spec/factories/events.rb
|
248
|
+
badd +1 ~/Sites/polygallery/spec/spec_helper.rb
|
249
|
+
badd +1 ~/Sites/polygallery/lib/polygallery/factories.rb
|
250
|
+
badd +2 ~/Sites/polygallery/lib/polygallery/factories/polygallery/galleries.rb
|
251
|
+
badd +57 ~/Sites/polygallery/lib/polygallery/capybara_helpers.rb
|
252
|
+
badd +1 ~/Sites/polygallery/app/models/polygallery/gallery.rb
|
253
|
+
badd +5 ~/Sites/polygallery/lib/polygallery/has_polyphotos.rb
|
254
|
+
badd +8 ~/Sites/polygallery/test/dummy/spec/models/polygallery/galleries_spec.rb
|
255
|
+
badd +1 ~/Sites/polygallery/test/dummy/spec/models/polygallery/photos_spec.rb
|
256
|
+
badd +1 ~/Sites/polygallery/test/dummy/app/models/event.rb
|
257
|
+
badd +3 ~/Sites/polygallery/lib/polygallery/version.rb
|
258
|
+
badd +19 ~/Sites/polygallery/Gemfile
|
259
|
+
badd +1 \'/Users/smit1625/Sites/polygallery/config/spring.rb\'
|
260
|
+
badd +1 ~/Sites/polygallery/config/spring.rb
|
261
|
+
badd +37 ~/Sites/polygallery/polygallery.gemspec
|
262
|
+
badd +4 ~/Sites/polygallery/config/routes.rb
|
263
|
+
badd +1 ~/Sites/polygallery/config/initializers/polygallery.rb
|
264
|
+
badd +8 ~/Sites/polygallery/lib/polygallery/railtie.rb
|
265
|
+
badd +5 ~/Sites/polygallery/lib/polygallery/glue.rb
|
266
|
+
badd +9 ~/Sites/polygallery/lib/polygallery/engine.rb
|
267
|
+
badd +6 ~/Sites/polygallery/db/migrate/20150701180557_create_polygalleries_if_necessary.rb
|
268
|
+
badd +7 ~/Sites/polygallery/lib/polygallery.rb
|
269
|
+
badd +12 ~/Sites/polygallery/lib/polygallery/paperclip_integration.rb
|
270
|
+
badd +172 lib/sesh/cli.rb
|
271
|
+
badd +18 lib/sesh/inferences.rb
|
272
|
+
badd +22 lib/sesh/assets/sample.yml
|
273
|
+
badd +0 lib/sesh/tmux_control.rb
|
274
|
+
badd +15 lib/sesh/ssh_control.rb
|
275
|
+
badd +0 lib/sesh.rb
|
276
|
+
badd +32 sesh.gemspec
|
277
|
+
argglobal
|
278
|
+
silent! argdel *
|
279
|
+
edit lib/sesh/tmux_control.rb
|
280
|
+
set splitbelow splitright
|
281
|
+
wincmd _ | wincmd |
|
282
|
+
split
|
283
|
+
1wincmd k
|
284
|
+
wincmd _ | wincmd |
|
285
|
+
vsplit
|
286
|
+
1wincmd h
|
287
|
+
wincmd w
|
288
|
+
wincmd _ | wincmd |
|
289
|
+
split
|
290
|
+
1wincmd k
|
291
|
+
wincmd w
|
292
|
+
wincmd w
|
293
|
+
wincmd _ | wincmd |
|
294
|
+
vsplit
|
295
|
+
1wincmd h
|
296
|
+
wincmd w
|
297
|
+
set nosplitbelow
|
298
|
+
set nosplitright
|
299
|
+
wincmd t
|
300
|
+
set winheight=1 winwidth=1
|
301
|
+
exe '1resize ' . ((&lines * 39 + 31) / 62)
|
302
|
+
exe 'vert 1resize ' . ((&columns * 136 + 136) / 272)
|
303
|
+
exe '2resize ' . ((&lines * 19 + 31) / 62)
|
304
|
+
exe 'vert 2resize ' . ((&columns * 135 + 136) / 272)
|
305
|
+
exe '3resize ' . ((&lines * 19 + 31) / 62)
|
306
|
+
exe 'vert 3resize ' . ((&columns * 135 + 136) / 272)
|
307
|
+
exe '4resize ' . ((&lines * 20 + 31) / 62)
|
308
|
+
exe 'vert 4resize ' . ((&columns * 136 + 136) / 272)
|
309
|
+
exe '5resize ' . ((&lines * 20 + 31) / 62)
|
310
|
+
exe 'vert 5resize ' . ((&columns * 135 + 136) / 272)
|
311
|
+
argglobal
|
312
|
+
setlocal fdm=manual
|
313
|
+
setlocal fde=0
|
314
|
+
setlocal fmr={{{,}}}
|
315
|
+
setlocal fdi=#
|
316
|
+
setlocal fdl=0
|
317
|
+
setlocal fml=1
|
318
|
+
setlocal fdn=20
|
319
|
+
setlocal fen
|
320
|
+
silent! normal! zE
|
321
|
+
let s:l = 57 - ((19 * winheight(0) + 19) / 39)
|
322
|
+
if s:l < 1 | let s:l = 1 | endif
|
323
|
+
exe s:l
|
324
|
+
normal! zt
|
325
|
+
57
|
326
|
+
normal! 058|
|
327
|
+
wincmd w
|
328
|
+
argglobal
|
329
|
+
edit lib/sesh/ssh_control.rb
|
330
|
+
setlocal fdm=manual
|
331
|
+
setlocal fde=0
|
332
|
+
setlocal fmr={{{,}}}
|
333
|
+
setlocal fdi=#
|
334
|
+
setlocal fdl=0
|
335
|
+
setlocal fml=1
|
336
|
+
setlocal fdn=20
|
337
|
+
setlocal fen
|
338
|
+
silent! normal! zE
|
339
|
+
let s:l = 14 - ((13 * winheight(0) + 9) / 19)
|
340
|
+
if s:l < 1 | let s:l = 1 | endif
|
341
|
+
exe s:l
|
342
|
+
normal! zt
|
343
|
+
14
|
344
|
+
normal! 019|
|
345
|
+
wincmd w
|
346
|
+
argglobal
|
347
|
+
edit lib/sesh/inferences.rb
|
348
|
+
setlocal fdm=manual
|
349
|
+
setlocal fde=0
|
350
|
+
setlocal fmr={{{,}}}
|
351
|
+
setlocal fdi=#
|
352
|
+
setlocal fdl=0
|
353
|
+
setlocal fml=1
|
354
|
+
setlocal fdn=20
|
355
|
+
setlocal fen
|
356
|
+
silent! normal! zE
|
357
|
+
let s:l = 13 - ((0 * winheight(0) + 9) / 19)
|
358
|
+
if s:l < 1 | let s:l = 1 | endif
|
359
|
+
exe s:l
|
360
|
+
normal! zt
|
361
|
+
13
|
362
|
+
normal! 033|
|
363
|
+
wincmd w
|
364
|
+
argglobal
|
365
|
+
edit lib/sesh.rb
|
366
|
+
setlocal fdm=manual
|
367
|
+
setlocal fde=0
|
368
|
+
setlocal fmr={{{,}}}
|
369
|
+
setlocal fdi=#
|
370
|
+
setlocal fdl=0
|
371
|
+
setlocal fml=1
|
372
|
+
setlocal fdn=20
|
373
|
+
setlocal fen
|
374
|
+
silent! normal! zE
|
375
|
+
let s:l = 42 - ((7 * winheight(0) + 10) / 20)
|
376
|
+
if s:l < 1 | let s:l = 1 | endif
|
377
|
+
exe s:l
|
378
|
+
normal! zt
|
379
|
+
42
|
380
|
+
normal! 032|
|
381
|
+
wincmd w
|
382
|
+
argglobal
|
383
|
+
edit lib/sesh/cli.rb
|
384
|
+
setlocal fdm=manual
|
385
|
+
setlocal fde=0
|
386
|
+
setlocal fmr={{{,}}}
|
387
|
+
setlocal fdi=#
|
388
|
+
setlocal fdl=0
|
389
|
+
setlocal fml=1
|
390
|
+
setlocal fdn=20
|
391
|
+
setlocal fen
|
392
|
+
silent! normal! zE
|
393
|
+
let s:l = 44 - ((19 * winheight(0) + 10) / 20)
|
394
|
+
if s:l < 1 | let s:l = 1 | endif
|
395
|
+
exe s:l
|
396
|
+
normal! zt
|
397
|
+
44
|
398
|
+
normal! 025|
|
399
|
+
wincmd w
|
400
|
+
exe '1resize ' . ((&lines * 39 + 31) / 62)
|
401
|
+
exe 'vert 1resize ' . ((&columns * 136 + 136) / 272)
|
402
|
+
exe '2resize ' . ((&lines * 19 + 31) / 62)
|
403
|
+
exe 'vert 2resize ' . ((&columns * 135 + 136) / 272)
|
404
|
+
exe '3resize ' . ((&lines * 19 + 31) / 62)
|
405
|
+
exe 'vert 3resize ' . ((&columns * 135 + 136) / 272)
|
406
|
+
exe '4resize ' . ((&lines * 20 + 31) / 62)
|
407
|
+
exe 'vert 4resize ' . ((&columns * 136 + 136) / 272)
|
408
|
+
exe '5resize ' . ((&lines * 20 + 31) / 62)
|
409
|
+
exe 'vert 5resize ' . ((&columns * 135 + 136) / 272)
|
410
|
+
tabnext 1
|
411
|
+
if exists('s:wipebuf')
|
412
|
+
silent exe 'bwipe ' . s:wipebuf
|
413
|
+
endif
|
414
|
+
unlet! s:wipebuf
|
415
|
+
set winheight=1 winwidth=20 shortmess=filnxtToOc
|
416
|
+
let s:sx = expand("<sfile>:p:r")."x.vim"
|
417
|
+
if file_readable(s:sx)
|
418
|
+
exe "source " . fnameescape(s:sx)
|
419
|
+
endif
|
420
|
+
let &so = s:so_save | let &siso = s:siso_save
|
421
|
+
doautoall SessionLoadPost
|
422
|
+
let g:this_obsession = v:this_session
|
423
|
+
unlet SessionLoad
|
424
|
+
" vim: set ft=vim :
|
data/lib/sesh.rb
CHANGED
@@ -30,6 +30,7 @@ module Sesh
|
|
30
30
|
|
31
31
|
DEFAULT_OPTIONS = {
|
32
32
|
project: nil,
|
33
|
+
template: nil,
|
33
34
|
shell: {
|
34
35
|
command: nil,
|
35
36
|
pane: nil,
|
@@ -37,7 +38,9 @@ module Sesh
|
|
37
38
|
},
|
38
39
|
ssh: {
|
39
40
|
local_addr: nil,
|
40
|
-
remote_addr: nil
|
41
|
+
remote_addr: nil,
|
42
|
+
connect_in_new_window: false,
|
43
|
+
connect_fullscreen: false
|
41
44
|
},
|
42
45
|
tmux: {
|
43
46
|
socket_file: nil,
|
data/lib/sesh/assets/sample.yml
CHANGED
data/lib/sesh/cli.rb
CHANGED
@@ -47,17 +47,34 @@ module Sesh
|
|
47
47
|
opts.on("-p", "--project=project", 'Project') {|v|
|
48
48
|
parsed_options[:project] = v }
|
49
49
|
|
50
|
+
# Options for "new" command
|
51
|
+
if @command == 'new'
|
52
|
+
opts.on('-T', '--template=path', 'Path to Tmuxinator Template') {|v|
|
53
|
+
parsed_options[:template] = v }
|
54
|
+
end
|
55
|
+
|
56
|
+
# Options for "connect" and "enslave" commands
|
57
|
+
if %w(connect enslave).include? @command
|
58
|
+
opts.on('-N', '--new-window', 'Connect in a new terminal window') {|v|
|
59
|
+
parsed_options[:ssh][:connect_in_new_window] = true }
|
60
|
+
opts.on('-F', '--fullscreen', 'Fullscreen new terminal window after connecting') {|v|
|
61
|
+
parsed_options[:ssh][:connect_fullscreen] = true }
|
62
|
+
end
|
63
|
+
|
64
|
+
# SSH options
|
50
65
|
opts.on("-L", "--local-ssh-addr=addr", 'Local SSH Address') {|v|
|
51
66
|
parsed_options[:ssh][:local_addr] = v }
|
52
67
|
opts.on("-R", "--remote-ssh-addr=addr", 'Remote SSH Address') {|v|
|
53
68
|
parsed_options[:ssh][:remote_addr] = v }
|
54
69
|
|
70
|
+
# Tmux options
|
55
71
|
opts.on('-S', '--tmux-socket-file=path', 'Path to Tmux Socket File') {|v|
|
56
72
|
# fatal("Socket file #{v} does not exist.") unless File.exist?(v)
|
57
73
|
parsed_options[:tmux][:socket_file] = v }
|
58
74
|
opts.on('--tmux-pids-file=path', 'Path to Tmux Pids File') {|v|
|
59
75
|
parsed_options[:tmux][:pids_file] = v }
|
60
76
|
|
77
|
+
# Shell options for remote commands
|
61
78
|
opts.on('-C', '--shell-command=cmd', 'Shell Command to Execute') {|v|
|
62
79
|
parsed_options[:shell][:command] = v }
|
63
80
|
opts.on('-P', '--shell-pane=pane', 'Pane to Execute Shell Command in') {|v|
|
@@ -117,6 +134,11 @@ module Sesh
|
|
117
134
|
Logger.fatal 'Hint: run sesh new or specify an existing project with your commmand.'
|
118
135
|
end
|
119
136
|
end
|
137
|
+
if %w(new).include? @command
|
138
|
+
@options[:project] ||= Inferences.infer_current_directory
|
139
|
+
@options[:template] ||= File.join(
|
140
|
+
File.dirname(File.expand_path(__FILE__)), 'assets', 'sample.yml' )
|
141
|
+
end
|
120
142
|
@options[:tmux][:socket_file] ||= "/tmp/#{@options[:project]}.sock"
|
121
143
|
@options[:tmux][:pids_file] ||= "/tmp/#{@options[:project]}.pids.txt"
|
122
144
|
if %w(enslave connect).include? @command
|
@@ -158,12 +180,10 @@ module Sesh
|
|
158
180
|
when 'stop' then @tmux_control.stop_project!
|
159
181
|
when 'restart' then @tmux_control.restart_project!
|
160
182
|
when 'new'
|
161
|
-
config = Tmuxinator::Config.project
|
183
|
+
config = Tmuxinator::Config.project @options[:project]
|
162
184
|
unless Tmuxinator::Config.exists?(@options[:project])
|
163
|
-
|
164
|
-
|
165
|
-
erb = Erubis::Eruby.new(File.read(template)).result(binding)
|
166
|
-
File.open(config, "w") { |f| f.write(erb) }
|
185
|
+
erb = Erubis::Eruby.new(File.read(@options[:template])).result binding
|
186
|
+
File.open(config, 'w') { |f| f.write(erb) }
|
167
187
|
end
|
168
188
|
|
169
189
|
Kernel.system("#{Inferences.infer_default_editor} #{config}") ||
|
@@ -185,6 +205,7 @@ module Sesh
|
|
185
205
|
Logger.success "#{pcount} project#{pcount>1 ? 's':''} currently running:"
|
186
206
|
running_projects.each do |rp|
|
187
207
|
puts; Logger.info "Project: #{rp}", 1
|
208
|
+
# TODO: handle the socket file better
|
188
209
|
tc = TmuxControl.new rp, socket_file: "/tmp/#{rp}.sock"
|
189
210
|
tc_clients = tc.connected_client_devices
|
190
211
|
if tc_clients.any?
|
@@ -211,7 +232,7 @@ module Sesh
|
|
211
232
|
Logger.info "Attempting to connect #{@options[:ssh][:remote_addr]} to Sesh project '#{@options[:project]}'..."
|
212
233
|
if @ssh_control.enslave_peer!
|
213
234
|
Logger.success "Sesh client connected successfully."
|
214
|
-
else Logger.fatal 'Sesh client failed to
|
235
|
+
else Logger.fatal 'Sesh client failed to connect.' end
|
215
236
|
when 'begin' then @tmux_control.begin_tmuxinator_session!
|
216
237
|
when 'run'
|
217
238
|
@tmux_control.do_shell_operation! @options[:shell]
|
data/lib/sesh/inferences.rb
CHANGED
@@ -3,9 +3,12 @@ require 'tmuxinator'
|
|
3
3
|
|
4
4
|
module Sesh
|
5
5
|
module Inferences
|
6
|
+
def self.infer_current_directory
|
7
|
+
`printf '%q\n' "${PWD##*/}"`.strip
|
8
|
+
end
|
6
9
|
def self.infer_project_from_current_directory
|
7
|
-
|
8
|
-
return
|
10
|
+
inferred_dir = infer_current_directory
|
11
|
+
return inferred_dir if Tmuxinator::Config.exists? inferred_dir
|
9
12
|
end
|
10
13
|
def self.infer_local_ssh_addr
|
11
14
|
inferred_user = `echo $USER`.strip
|
data/lib/sesh/ssh_control.rb
CHANGED
@@ -19,27 +19,34 @@ module Sesh
|
|
19
19
|
@term_app ||= Inferences.infer_terminal_app
|
20
20
|
case @term_app
|
21
21
|
when 'iTerm'
|
22
|
-
tell_term_app
|
23
|
-
tell_term_process =
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
22
|
+
tell_term_app = %Q[tell application "#{@term_app}"]
|
23
|
+
tell_term_process =
|
24
|
+
%Q[tell application "System Events" to tell process "#{@term_app}"]
|
25
|
+
cmd = %Q[osascript -e '#{tell_term_app} to activate']
|
26
|
+
if @options[:connect_in_new_window]
|
27
|
+
cmd += %Q[ -e '#{tell_term_process} to keystroke \"n\" using command down']
|
28
|
+
cmd += %Q[ -e 'delay 1']
|
29
|
+
end
|
30
|
+
cmd += %Q[ -e "#{tell_term_app.gsub('"', '\\"')} to tell session -1] <<
|
31
|
+
%Q[ of current terminal to write text \\"#{connection_command(addr)}\\""]
|
32
|
+
|
33
|
+
if @options[:connect_fullscreen]
|
34
|
+
# TODO: come up with a non-toggling way to ensure fullscreen
|
35
|
+
cmd += %Q[ -e '#{tell_term_process} to keystroke return using command down']
|
36
|
+
end
|
37
|
+
puts "Command: #{cmd}"
|
38
|
+
Sesh.format_command cmd
|
34
39
|
when 'Terminal' then Sesh.format_command connection_command(addr)
|
35
40
|
end
|
36
41
|
end
|
37
42
|
|
38
43
|
def enslave_peer!
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
44
|
+
cmd = %Q[ssh #{@options[:remote_addr]} -t "sesh connect ]
|
45
|
+
cmd << %Q[-p #{@project} -R #{@options[:local_addr]}]
|
46
|
+
cmd << ' -N' if @options[:connect_in_new_window]
|
47
|
+
cmd << ' -F' if @options[:connect_fullscreen]
|
48
|
+
cmd << '"'
|
49
|
+
system cmd
|
43
50
|
end
|
44
51
|
end
|
45
52
|
end
|
data/lib/sesh/tmux_control.rb
CHANGED
@@ -9,11 +9,12 @@ module Sesh
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def self.get_running_projects
|
12
|
+
# TODO: handle custom socket paths
|
12
13
|
output = Sesh.format_and_run_command <<-BASH
|
13
14
|
ps aux | grep tmux | grep "sesh begin" | grep -v "[g]rep" \
|
14
15
|
| sed -e "s/.*\\/tmp\\/\\(.*\\)\\.sock.*/\\1/"
|
15
16
|
BASH
|
16
|
-
output.
|
17
|
+
output.lines
|
17
18
|
end
|
18
19
|
def already_running?; self.class.get_running_projects.include? @project end
|
19
20
|
# `ps aux | grep "#{project_name_matcher}"`.strip.length > 0 end
|
@@ -42,14 +43,22 @@ module Sesh
|
|
42
43
|
|
43
44
|
def obtain_pids_from_session
|
44
45
|
tmux_processes =
|
45
|
-
`tmux list-panes -s -F "\#{pane_pid} \#{pane_current_command}" -t "#{@project}" 2> /dev/null | grep -v tmux | awk '{print $1}'`.strip.lines +
|
46
|
-
`tmux -S "#{@socket_file}" list-panes -s -F "\#{pane_pid} \#{pane_current_command}" 2> /dev/null | grep -v tmux | awk '{print $1}'`.strip.lines
|
46
|
+
`tmux list-panes -s -F "\#{pane_pid} \#{pane_current_command}" -t "#{@project}" 2> /dev/null | grep -v tmux | awk '{print $1}'`.strip.lines.map(&:strip) +
|
47
|
+
`tmux -S "#{@socket_file}" list-panes -s -F "\#{pane_pid} \#{pane_current_command}" 2> /dev/null | grep -v tmux | awk '{print $1}'`.strip.lines.map(&:strip)
|
47
48
|
return [] unless tmux_processes.any?
|
48
|
-
spring_processes = []
|
49
|
+
spring_processes = other_processes = []
|
49
50
|
spring_app_pid = `ps -ef | grep "[s]pring app .*| #{@project} |" | grep -v grep | awk '{print $2}'`.strip
|
50
|
-
spring_processes += `ps -ef | grep #{spring_app_pid} | grep -v grep | grep -v "[s]pring app" | awk '{print $2}'`.strip.lines if spring_app_pid.length > 0
|
51
|
-
spring_processes += `ps -ef | grep "[s]pring.*| #{@project} |" | grep -v grep | awk '{print $2}'`.strip.lines
|
52
|
-
|
51
|
+
spring_processes += `ps -ef | grep #{spring_app_pid} | grep -v grep | grep -v "[s]pring app" | awk '{print $2}'`.strip.lines.map(&:strip) if spring_app_pid.length > 0
|
52
|
+
spring_processes += `ps -ef | grep "[s]pring.*| #{@project} |" | grep -v grep | awk '{print $2}'`.strip.lines.map(&:strip)
|
53
|
+
tmux_processes.each{|pid|
|
54
|
+
other_processes += obtain_child_pids_from_pid(pid) - tmux_processes }
|
55
|
+
spring_processes + other_processes + tmux_processes
|
56
|
+
end
|
57
|
+
def obtain_child_pids_from_pid(pid)
|
58
|
+
output = `ps -ef | grep #{pid} | grep -v grep | awk '{print $2}'`.strip.lines.map(&:strip)
|
59
|
+
output -= [pid]
|
60
|
+
output += output.map{|cpid| obtain_child_pids_from_pid(cpid) - [pid] }.flatten
|
61
|
+
output.reverse
|
53
62
|
end
|
54
63
|
def store_pids_from_session!
|
55
64
|
File.open(@options[:pids_file], 'w') {|f|
|
data/lib/sesh/version.rb
CHANGED
data/sesh.gemspec
CHANGED
@@ -21,12 +21,12 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.homepage = 'http://rubygems.org/gems/sesh'
|
22
22
|
s.license = 'GNU GPLv3'
|
23
23
|
|
24
|
-
s.add_development_dependency
|
25
|
-
s.add_development_dependency
|
26
|
-
s.add_development_dependency
|
24
|
+
s.add_development_dependency 'bundler', '~> 1.10'
|
25
|
+
s.add_development_dependency 'rake', '~> 10.0'
|
26
|
+
s.add_development_dependency 'rspec', '~> 3.3'
|
27
27
|
|
28
28
|
s.add_dependency 'tmuxinator', '~> 0.6.9'
|
29
|
-
s.add_dependency 'deep_merge'
|
30
|
-
s.add_dependency 'awesome_print'
|
31
|
-
s.add_dependency 'colorize'
|
29
|
+
s.add_dependency 'deep_merge', '~> 1.0'
|
30
|
+
s.add_dependency 'awesome_print', '~> 1.6'
|
31
|
+
s.add_dependency 'colorize', '~> 0.7.7'
|
32
32
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sesh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MacKinley Smith
|
@@ -42,16 +42,16 @@ dependencies:
|
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '3.3'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '3.3'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: tmuxinator
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -70,44 +70,44 @@ dependencies:
|
|
70
70
|
name: deep_merge
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
75
|
+
version: '1.0'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
82
|
+
version: '1.0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: awesome_print
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '1.6'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '1.6'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: colorize
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: 0.7.7
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - "
|
108
|
+
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: 0.7.7
|
111
111
|
description: Remote background sessions powered by tmux and tmuxinator.
|
112
112
|
email: smithmackinley@gmail.com
|
113
113
|
executables:
|
@@ -121,6 +121,7 @@ files:
|
|
121
121
|
- LICENSE
|
122
122
|
- README.md
|
123
123
|
- Rakefile
|
124
|
+
- Session.vim
|
124
125
|
- bin/console
|
125
126
|
- bin/setup
|
126
127
|
- exe/sesh
|