tmuxinator-bosh-console 0.1.0
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 +7 -0
- data/.gitignore +6 -0
- data/.rspec +3 -0
- data/.rubocop.yml +170 -0
- data/.ruby-version +1 -0
- data/.travis.yml +6 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +149 -0
- data/Guardfile +12 -0
- data/LICENSE.txt +21 -0
- data/README.markdown +22 -0
- data/Rakefile +13 -0
- data/exe/tmuxinator-bosh-console +37 -0
- data/lib/tmuxinator/bosh/console/version.rb +8 -0
- data/templates/bosh-console.yml +20 -0
- data/tmuxinator-bosh-console.gemspec +36 -0
- metadata +201 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 15fa36077830f75362da901aa1f672415eeedd27
|
|
4
|
+
data.tar.gz: b41b6cb0ce373080c82577f5ccf91f54e7dee025
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 8406f2000560552098ffcaa2d606f83c1e4c6c911800a8aefc4a4ca296fa0510a375bc378ae5f3faf0c5a2ffd5bc1bbf137e1be6ab8d1dbe1409d60a0370ed91
|
|
7
|
+
data.tar.gz: cf0bd97cddbeea4e53f95d1b611ab708eb1c5483d200f1255a730c7e0f96bb56c3fb654dd7570cd82e352dc21cf67ab127a213beac43113935d0ef04bd7d62ff
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
AllCops:
|
|
2
|
+
TargetRubyVersion: 2.3
|
|
3
|
+
Include:
|
|
4
|
+
- '**/Gemfile'
|
|
5
|
+
- '**/Guardfile'
|
|
6
|
+
- '**/*.gemspec'
|
|
7
|
+
- '**/Rakefile'
|
|
8
|
+
- 'exe/*'
|
|
9
|
+
Exclude:
|
|
10
|
+
- vendor/**/*
|
|
11
|
+
- db/migrations/**/*
|
|
12
|
+
|
|
13
|
+
DisplayCopNames:
|
|
14
|
+
Enabled: true
|
|
15
|
+
|
|
16
|
+
DisplayStyleGuide:
|
|
17
|
+
Enabled: true
|
|
18
|
+
|
|
19
|
+
Lint/AmbiguousRegexpLiteral:
|
|
20
|
+
Enabled: false
|
|
21
|
+
|
|
22
|
+
Lint/HandleExceptions:
|
|
23
|
+
Enabled: true
|
|
24
|
+
|
|
25
|
+
Lint/UnusedBlockArgument:
|
|
26
|
+
Enabled: false
|
|
27
|
+
|
|
28
|
+
Lint/UnusedMethodArgument:
|
|
29
|
+
Enabled: false
|
|
30
|
+
|
|
31
|
+
Metrics/AbcSize:
|
|
32
|
+
Enabled: false
|
|
33
|
+
|
|
34
|
+
Metrics/ClassLength:
|
|
35
|
+
Enabled: false
|
|
36
|
+
|
|
37
|
+
Metrics/CyclomaticComplexity:
|
|
38
|
+
Max: 12
|
|
39
|
+
|
|
40
|
+
Metrics/LineLength:
|
|
41
|
+
Max: 180
|
|
42
|
+
|
|
43
|
+
Metrics/MethodLength:
|
|
44
|
+
Max: 60
|
|
45
|
+
|
|
46
|
+
Metrics/ModuleLength:
|
|
47
|
+
Enabled: false
|
|
48
|
+
|
|
49
|
+
Metrics/ParameterLists:
|
|
50
|
+
Enabled: false
|
|
51
|
+
|
|
52
|
+
Metrics/PerceivedComplexity:
|
|
53
|
+
Enabled: false
|
|
54
|
+
|
|
55
|
+
Performance/Casecmp:
|
|
56
|
+
Enabled: false
|
|
57
|
+
|
|
58
|
+
Performance/Sample:
|
|
59
|
+
Enabled: false
|
|
60
|
+
|
|
61
|
+
Style/Alias:
|
|
62
|
+
EnforcedStyle: prefer_alias_method
|
|
63
|
+
|
|
64
|
+
Style/AlignParameters:
|
|
65
|
+
Enabled: false
|
|
66
|
+
|
|
67
|
+
Style/AsciiComments:
|
|
68
|
+
Enabled: false
|
|
69
|
+
|
|
70
|
+
Style/BlockDelimiters:
|
|
71
|
+
Enabled: false
|
|
72
|
+
|
|
73
|
+
Style/BracesAroundHashParameters:
|
|
74
|
+
Enabled: false
|
|
75
|
+
|
|
76
|
+
Style/ClassAndModuleChildren:
|
|
77
|
+
Enabled: false
|
|
78
|
+
|
|
79
|
+
Style/ClosingParenthesisIndentation:
|
|
80
|
+
Enabled: false
|
|
81
|
+
|
|
82
|
+
Style/Documentation:
|
|
83
|
+
Enabled: false
|
|
84
|
+
|
|
85
|
+
Style/DotPosition:
|
|
86
|
+
EnforcedStyle: trailing
|
|
87
|
+
|
|
88
|
+
Style/DoubleNegation:
|
|
89
|
+
Enabled: false
|
|
90
|
+
|
|
91
|
+
Style/EachWithObject:
|
|
92
|
+
Enabled: false
|
|
93
|
+
|
|
94
|
+
Style/FormatString:
|
|
95
|
+
EnforcedStyle: sprintf
|
|
96
|
+
|
|
97
|
+
Style/GuardClause:
|
|
98
|
+
Enabled: false
|
|
99
|
+
|
|
100
|
+
Style/IfUnlessModifier:
|
|
101
|
+
Enabled: false
|
|
102
|
+
|
|
103
|
+
Style/IndentArray:
|
|
104
|
+
EnforcedStyle: consistent
|
|
105
|
+
|
|
106
|
+
Style/IndentHash:
|
|
107
|
+
Enabled: false
|
|
108
|
+
|
|
109
|
+
Style/Lambda:
|
|
110
|
+
Enabled: false
|
|
111
|
+
|
|
112
|
+
Style/MultilineBlockChain:
|
|
113
|
+
Enabled: false
|
|
114
|
+
|
|
115
|
+
Style/MultilineBlockLayout:
|
|
116
|
+
Enabled: false
|
|
117
|
+
|
|
118
|
+
Style/MultilineOperationIndentation:
|
|
119
|
+
Enabled: false
|
|
120
|
+
|
|
121
|
+
Style/NegatedIf:
|
|
122
|
+
Enabled: false
|
|
123
|
+
|
|
124
|
+
Style/Next:
|
|
125
|
+
Enabled: false
|
|
126
|
+
|
|
127
|
+
Style/NumericLiterals:
|
|
128
|
+
Enabled: false
|
|
129
|
+
|
|
130
|
+
Style/PredicateName:
|
|
131
|
+
Enabled: false
|
|
132
|
+
|
|
133
|
+
Style/RaiseArgs:
|
|
134
|
+
EnforcedStyle: compact
|
|
135
|
+
|
|
136
|
+
Style/RedundantSelf:
|
|
137
|
+
Enabled: false
|
|
138
|
+
|
|
139
|
+
Style/RescueModifier:
|
|
140
|
+
Enabled: false
|
|
141
|
+
|
|
142
|
+
Style/SignalException:
|
|
143
|
+
Enabled: false
|
|
144
|
+
|
|
145
|
+
Style/SingleLineBlockParams:
|
|
146
|
+
Enabled: false
|
|
147
|
+
|
|
148
|
+
Style/SpaceAroundEqualsInParameterDefault:
|
|
149
|
+
EnforcedStyle: no_space
|
|
150
|
+
|
|
151
|
+
Style/StructInheritance:
|
|
152
|
+
Enabled: false
|
|
153
|
+
|
|
154
|
+
Style/TrailingCommaInArguments:
|
|
155
|
+
Enabled: false
|
|
156
|
+
|
|
157
|
+
Style/TrailingCommaInLiteral:
|
|
158
|
+
Enabled: false
|
|
159
|
+
|
|
160
|
+
Style/TrailingUnderscoreVariable:
|
|
161
|
+
Enabled: false
|
|
162
|
+
|
|
163
|
+
Style/TrivialAccessors:
|
|
164
|
+
Enabled: false
|
|
165
|
+
|
|
166
|
+
Style/WordArray:
|
|
167
|
+
Enabled: false
|
|
168
|
+
|
|
169
|
+
Style/ZeroLengthPredicate:
|
|
170
|
+
Enabled: false
|
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ruby-2.4.0
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
tmuxinator-bosh-console (0.1.0)
|
|
5
|
+
bosh_cli
|
|
6
|
+
|
|
7
|
+
GEM
|
|
8
|
+
remote: https://rubygems.org/
|
|
9
|
+
specs:
|
|
10
|
+
ast (2.3.0)
|
|
11
|
+
aws-sdk-core (2.2.0)
|
|
12
|
+
jmespath (~> 1.0)
|
|
13
|
+
aws-sdk-resources (2.2.0)
|
|
14
|
+
aws-sdk-core (= 2.2.0)
|
|
15
|
+
blobstore_client (1.3262.0)
|
|
16
|
+
aws-sdk-resources (= 2.2.0)
|
|
17
|
+
bosh_common (~> 1.3262.0)
|
|
18
|
+
httpclient (= 2.7.1)
|
|
19
|
+
multi_json (~> 1.1)
|
|
20
|
+
bosh-template (1.3262.0)
|
|
21
|
+
semi_semantic (~> 1.2.0)
|
|
22
|
+
bosh_cli (1.3262.0)
|
|
23
|
+
blobstore_client (~> 1.3262.0)
|
|
24
|
+
bosh-template (~> 1.3262.0)
|
|
25
|
+
bosh_common (~> 1.3262.0)
|
|
26
|
+
cf-uaa-lib (~> 3.2.1)
|
|
27
|
+
highline (~> 1.6.2)
|
|
28
|
+
httpclient (= 2.7.1)
|
|
29
|
+
json_pure (~> 1.7)
|
|
30
|
+
minitar (~> 0.5.4)
|
|
31
|
+
net-scp (~> 1.1.0)
|
|
32
|
+
net-ssh (= 2.9.2)
|
|
33
|
+
net-ssh-gateway (~> 1.2.0)
|
|
34
|
+
netaddr (~> 1.5.0)
|
|
35
|
+
progressbar (~> 0.9.0)
|
|
36
|
+
sshkey (~> 1.7.0)
|
|
37
|
+
terminal-table (~> 1.4.3)
|
|
38
|
+
bosh_common (1.3262.0)
|
|
39
|
+
logging (~> 1.8.2)
|
|
40
|
+
semi_semantic (~> 1.2.0)
|
|
41
|
+
cf-uaa-lib (3.2.5)
|
|
42
|
+
multi_json
|
|
43
|
+
coderay (1.1.1)
|
|
44
|
+
diff-lcs (1.2.5)
|
|
45
|
+
ffi (1.9.14)
|
|
46
|
+
formatador (0.2.5)
|
|
47
|
+
guard (2.13.0)
|
|
48
|
+
formatador (>= 0.2.4)
|
|
49
|
+
listen (>= 2.7, <= 4.0)
|
|
50
|
+
lumberjack (~> 1.0)
|
|
51
|
+
nenv (~> 0.1)
|
|
52
|
+
notiffany (~> 0.0)
|
|
53
|
+
pry (>= 0.9.12)
|
|
54
|
+
shellany (~> 0.0)
|
|
55
|
+
thor (>= 0.18.1)
|
|
56
|
+
guard-bundler (2.1.0)
|
|
57
|
+
bundler (~> 1.0)
|
|
58
|
+
guard (~> 2.2)
|
|
59
|
+
guard-compat (~> 1.1)
|
|
60
|
+
guard-compat (1.2.1)
|
|
61
|
+
guard-rspec (4.5.0)
|
|
62
|
+
guard (~> 2.1)
|
|
63
|
+
guard-compat (~> 1.1)
|
|
64
|
+
rspec (>= 2.99.0, < 4.0)
|
|
65
|
+
highline (1.6.21)
|
|
66
|
+
httpclient (2.7.1)
|
|
67
|
+
jmespath (1.2.4)
|
|
68
|
+
json_pure (>= 1.8.1)
|
|
69
|
+
json_pure (1.8.3)
|
|
70
|
+
listen (3.0.3)
|
|
71
|
+
rb-fsevent (>= 0.9.3)
|
|
72
|
+
rb-inotify (>= 0.9)
|
|
73
|
+
little-plugger (1.1.4)
|
|
74
|
+
logging (1.8.2)
|
|
75
|
+
little-plugger (>= 1.1.3)
|
|
76
|
+
multi_json (>= 1.8.4)
|
|
77
|
+
lumberjack (1.0.9)
|
|
78
|
+
method_source (0.8.2)
|
|
79
|
+
minitar (0.5.4)
|
|
80
|
+
multi_json (1.12.1)
|
|
81
|
+
nenv (0.2.0)
|
|
82
|
+
net-scp (1.1.2)
|
|
83
|
+
net-ssh (>= 2.6.5)
|
|
84
|
+
net-ssh (2.9.2)
|
|
85
|
+
net-ssh-gateway (1.2.0)
|
|
86
|
+
net-ssh (>= 2.6.5)
|
|
87
|
+
netaddr (1.5.1)
|
|
88
|
+
notiffany (0.0.7)
|
|
89
|
+
nenv (~> 0.1)
|
|
90
|
+
shellany (~> 0.0)
|
|
91
|
+
parser (2.3.3.1)
|
|
92
|
+
ast (~> 2.2)
|
|
93
|
+
powerpack (0.1.1)
|
|
94
|
+
progressbar (0.9.2)
|
|
95
|
+
pry (0.10.4)
|
|
96
|
+
coderay (~> 1.1.0)
|
|
97
|
+
method_source (~> 0.8.1)
|
|
98
|
+
slop (~> 3.4)
|
|
99
|
+
rainbow (2.2.1)
|
|
100
|
+
rake (12.0.0)
|
|
101
|
+
rb-fsevent (0.9.8)
|
|
102
|
+
rb-inotify (0.9.7)
|
|
103
|
+
ffi (>= 0.5.0)
|
|
104
|
+
rb-readline (0.5.3)
|
|
105
|
+
rspec (3.5.0)
|
|
106
|
+
rspec-core (~> 3.5.0)
|
|
107
|
+
rspec-expectations (~> 3.5.0)
|
|
108
|
+
rspec-mocks (~> 3.5.0)
|
|
109
|
+
rspec-core (3.5.4)
|
|
110
|
+
rspec-support (~> 3.5.0)
|
|
111
|
+
rspec-expectations (3.5.0)
|
|
112
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
113
|
+
rspec-support (~> 3.5.0)
|
|
114
|
+
rspec-mocks (3.5.0)
|
|
115
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
116
|
+
rspec-support (~> 3.5.0)
|
|
117
|
+
rspec-support (3.5.0)
|
|
118
|
+
rubocop (0.46.0)
|
|
119
|
+
parser (>= 2.3.1.1, < 3.0)
|
|
120
|
+
powerpack (~> 0.1)
|
|
121
|
+
rainbow (>= 1.99.1, < 3.0)
|
|
122
|
+
ruby-progressbar (~> 1.7)
|
|
123
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
|
124
|
+
ruby-progressbar (1.8.1)
|
|
125
|
+
semi_semantic (1.2.0)
|
|
126
|
+
shellany (0.0.1)
|
|
127
|
+
slop (3.6.0)
|
|
128
|
+
sshkey (1.7.0)
|
|
129
|
+
terminal-table (1.4.5)
|
|
130
|
+
thor (0.19.1)
|
|
131
|
+
unicode-display_width (1.1.2)
|
|
132
|
+
|
|
133
|
+
PLATFORMS
|
|
134
|
+
ruby
|
|
135
|
+
|
|
136
|
+
DEPENDENCIES
|
|
137
|
+
bundler
|
|
138
|
+
guard
|
|
139
|
+
guard-bundler
|
|
140
|
+
guard-rspec
|
|
141
|
+
pry
|
|
142
|
+
rake
|
|
143
|
+
rb-readline
|
|
144
|
+
rspec
|
|
145
|
+
rubocop
|
|
146
|
+
tmuxinator-bosh-console!
|
|
147
|
+
|
|
148
|
+
BUNDLED WITH
|
|
149
|
+
1.13.2
|
data/Guardfile
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
guard :bundler do
|
|
3
|
+
require 'guard/bundler'
|
|
4
|
+
require 'guard/bundler/verify'
|
|
5
|
+
watch('Gemfile')
|
|
6
|
+
watch(/^.*\.gemspec/)
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
guard :rspec, cmd: 'bundle exec rspec' do
|
|
10
|
+
watch(%r{^spec/.+_spec\.rb$})
|
|
11
|
+
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
|
12
|
+
end
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2017 Steffen Uhlig
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
data/README.markdown
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# BOSH tmuxinator console
|
|
2
|
+
|
|
3
|
+
## Synopsis
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
$ tmuxinator-bosh-console cf-warden
|
|
7
|
+
$ tmuxinator cf-warden
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
will create a new tmuxinator project 'cf-warden'. Each instance (VM) will get its own tmux window with some panes, according to the provided template.
|
|
11
|
+
|
|
12
|
+
The list of instances is generated by executing `bosh instances` and therefore lists only the VMs of the current deployment.
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
$ gem install tmuxinator-bosh-console
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Prerequisites
|
|
21
|
+
|
|
22
|
+
`bosh instances` must return a zero or more instances.
|
data/Rakefile
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
require 'rake'
|
|
3
|
+
require 'rspec/core/rake_task'
|
|
4
|
+
require 'rubocop/rake_task'
|
|
5
|
+
require 'bundler/gem_tasks'
|
|
6
|
+
|
|
7
|
+
RuboCop::RakeTask.new
|
|
8
|
+
|
|
9
|
+
RSpec::Core::RakeTask.new do |t|
|
|
10
|
+
t.pattern = 'spec/**/*_spec.rb'
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
task default: ['rubocop:auto_correct', :spec]
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
$LOAD_PATH.unshift(File.expand_path('../../lib', __FILE__))
|
|
5
|
+
|
|
6
|
+
require 'erb'
|
|
7
|
+
require 'pathname'
|
|
8
|
+
|
|
9
|
+
def die(msg)
|
|
10
|
+
warn "Error: #{msg}"
|
|
11
|
+
exit(1)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# TODO
|
|
15
|
+
# --include only this VM (whitelisting); may be repeated
|
|
16
|
+
# --exclude this VM (blacklisting); may be repeated
|
|
17
|
+
# --custom bosh ssh command, e.g. gateway-host
|
|
18
|
+
project_name = ARGV.first || die('Missing argument for the tmuxinator project name')
|
|
19
|
+
project_file = Pathname("~/.tmuxinator/#{project_name}.yml").expand_path
|
|
20
|
+
|
|
21
|
+
if project_file.exist?
|
|
22
|
+
die("Not overriding tmuxinator project file #{project_file}")
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
vms = `bosh instances`.lines.map { |line|
|
|
26
|
+
md = line.match(%r{\| (?<job>\w+)\/(?<index>\d+)})
|
|
27
|
+
|
|
28
|
+
if md
|
|
29
|
+
{
|
|
30
|
+
job: md['job'],
|
|
31
|
+
index: md['index'],
|
|
32
|
+
}
|
|
33
|
+
end
|
|
34
|
+
}.compact
|
|
35
|
+
|
|
36
|
+
template = Pathname(__dir__) / '../templates/bosh-console.yml'
|
|
37
|
+
project_file.write(ERB.new(Pathname(template).read).result(binding))
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# ~/.tmuxinator/<%= project_name %>.yml
|
|
2
|
+
|
|
3
|
+
name: <%= project_name %>
|
|
4
|
+
|
|
5
|
+
windows:
|
|
6
|
+
<% vms.each do |vm| %>
|
|
7
|
+
- <%= vm[:job] %>/<%= vm[:index] %>:
|
|
8
|
+
layout: main-vertical
|
|
9
|
+
panes:
|
|
10
|
+
- shell:
|
|
11
|
+
- bosh ssh <%= vm[:job] %>/<%= vm[:index] %>
|
|
12
|
+
- sudo su -
|
|
13
|
+
- cd /var/vcap
|
|
14
|
+
- monit:
|
|
15
|
+
- bosh ssh <%= vm[:job] %>/<%= vm[:index] %>
|
|
16
|
+
- sudo watch -n 1 /var/vcap/bosh/bin/monit summary
|
|
17
|
+
- logs:
|
|
18
|
+
- bosh ssh <%= vm[:job] %>/<%= vm[:index] %>
|
|
19
|
+
- tail -f /var/vcap/sys/log/*/*
|
|
20
|
+
<% end %>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
lib = File.expand_path('../lib', __FILE__)
|
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
|
+
require 'tmuxinator/bosh/console/version'
|
|
6
|
+
|
|
7
|
+
Gem::Specification.new do |spec|
|
|
8
|
+
spec.name = 'tmuxinator-bosh-console'
|
|
9
|
+
spec.version = Tmuxinator::BOSH::Console::VERSION
|
|
10
|
+
spec.authors = ['Steffen Uhlig']
|
|
11
|
+
spec.email = ['Steffen.Uhlig@de.ibm.com']
|
|
12
|
+
|
|
13
|
+
spec.summary = 'Generates the tmuxinator configuration for all VMs of a BOSH deployment'
|
|
14
|
+
spec.description = 'Each instance (VM) will get its own tmux window with some panes, according to the provided template.'
|
|
15
|
+
spec.license = 'MIT'
|
|
16
|
+
|
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
|
18
|
+
f.match(%r{^(test|spec|features)/})
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
spec.bindir = 'exe'
|
|
22
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
23
|
+
spec.require_paths = ['lib']
|
|
24
|
+
|
|
25
|
+
spec.add_dependency 'bosh_cli'
|
|
26
|
+
|
|
27
|
+
spec.add_development_dependency 'bundler'
|
|
28
|
+
spec.add_development_dependency 'guard'
|
|
29
|
+
spec.add_development_dependency 'guard-bundler'
|
|
30
|
+
spec.add_development_dependency 'guard-rspec'
|
|
31
|
+
spec.add_development_dependency 'pry'
|
|
32
|
+
spec.add_development_dependency 'rake'
|
|
33
|
+
spec.add_development_dependency 'rb-readline'
|
|
34
|
+
spec.add_development_dependency 'rspec'
|
|
35
|
+
spec.add_development_dependency 'rubocop'
|
|
36
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: tmuxinator-bosh-console
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Steffen Uhlig
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: exe
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2017-01-15 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: bosh_cli
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - ">="
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '0'
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - ">="
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '0'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: bundler
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - ">="
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '0'
|
|
34
|
+
type: :development
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - ">="
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: guard
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - ">="
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '0'
|
|
48
|
+
type: :development
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - ">="
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '0'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: guard-bundler
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - ">="
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '0'
|
|
62
|
+
type: :development
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - ">="
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '0'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: guard-rspec
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - ">="
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '0'
|
|
76
|
+
type: :development
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - ">="
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '0'
|
|
83
|
+
- !ruby/object:Gem::Dependency
|
|
84
|
+
name: pry
|
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
|
86
|
+
requirements:
|
|
87
|
+
- - ">="
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: '0'
|
|
90
|
+
type: :development
|
|
91
|
+
prerelease: false
|
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
+
requirements:
|
|
94
|
+
- - ">="
|
|
95
|
+
- !ruby/object:Gem::Version
|
|
96
|
+
version: '0'
|
|
97
|
+
- !ruby/object:Gem::Dependency
|
|
98
|
+
name: rake
|
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
|
100
|
+
requirements:
|
|
101
|
+
- - ">="
|
|
102
|
+
- !ruby/object:Gem::Version
|
|
103
|
+
version: '0'
|
|
104
|
+
type: :development
|
|
105
|
+
prerelease: false
|
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
+
requirements:
|
|
108
|
+
- - ">="
|
|
109
|
+
- !ruby/object:Gem::Version
|
|
110
|
+
version: '0'
|
|
111
|
+
- !ruby/object:Gem::Dependency
|
|
112
|
+
name: rb-readline
|
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
|
114
|
+
requirements:
|
|
115
|
+
- - ">="
|
|
116
|
+
- !ruby/object:Gem::Version
|
|
117
|
+
version: '0'
|
|
118
|
+
type: :development
|
|
119
|
+
prerelease: false
|
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
+
requirements:
|
|
122
|
+
- - ">="
|
|
123
|
+
- !ruby/object:Gem::Version
|
|
124
|
+
version: '0'
|
|
125
|
+
- !ruby/object:Gem::Dependency
|
|
126
|
+
name: rspec
|
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
|
128
|
+
requirements:
|
|
129
|
+
- - ">="
|
|
130
|
+
- !ruby/object:Gem::Version
|
|
131
|
+
version: '0'
|
|
132
|
+
type: :development
|
|
133
|
+
prerelease: false
|
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
+
requirements:
|
|
136
|
+
- - ">="
|
|
137
|
+
- !ruby/object:Gem::Version
|
|
138
|
+
version: '0'
|
|
139
|
+
- !ruby/object:Gem::Dependency
|
|
140
|
+
name: rubocop
|
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
|
142
|
+
requirements:
|
|
143
|
+
- - ">="
|
|
144
|
+
- !ruby/object:Gem::Version
|
|
145
|
+
version: '0'
|
|
146
|
+
type: :development
|
|
147
|
+
prerelease: false
|
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
149
|
+
requirements:
|
|
150
|
+
- - ">="
|
|
151
|
+
- !ruby/object:Gem::Version
|
|
152
|
+
version: '0'
|
|
153
|
+
description: Each instance (VM) will get its own tmux window with some panes, according
|
|
154
|
+
to the provided template.
|
|
155
|
+
email:
|
|
156
|
+
- Steffen.Uhlig@de.ibm.com
|
|
157
|
+
executables:
|
|
158
|
+
- tmuxinator-bosh-console
|
|
159
|
+
extensions: []
|
|
160
|
+
extra_rdoc_files: []
|
|
161
|
+
files:
|
|
162
|
+
- ".gitignore"
|
|
163
|
+
- ".rspec"
|
|
164
|
+
- ".rubocop.yml"
|
|
165
|
+
- ".ruby-version"
|
|
166
|
+
- ".travis.yml"
|
|
167
|
+
- Gemfile
|
|
168
|
+
- Gemfile.lock
|
|
169
|
+
- Guardfile
|
|
170
|
+
- LICENSE.txt
|
|
171
|
+
- README.markdown
|
|
172
|
+
- Rakefile
|
|
173
|
+
- exe/tmuxinator-bosh-console
|
|
174
|
+
- lib/tmuxinator/bosh/console/version.rb
|
|
175
|
+
- templates/bosh-console.yml
|
|
176
|
+
- tmuxinator-bosh-console.gemspec
|
|
177
|
+
homepage:
|
|
178
|
+
licenses:
|
|
179
|
+
- MIT
|
|
180
|
+
metadata: {}
|
|
181
|
+
post_install_message:
|
|
182
|
+
rdoc_options: []
|
|
183
|
+
require_paths:
|
|
184
|
+
- lib
|
|
185
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
186
|
+
requirements:
|
|
187
|
+
- - ">="
|
|
188
|
+
- !ruby/object:Gem::Version
|
|
189
|
+
version: '0'
|
|
190
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
191
|
+
requirements:
|
|
192
|
+
- - ">="
|
|
193
|
+
- !ruby/object:Gem::Version
|
|
194
|
+
version: '0'
|
|
195
|
+
requirements: []
|
|
196
|
+
rubyforge_project:
|
|
197
|
+
rubygems_version: 2.5.1
|
|
198
|
+
signing_key:
|
|
199
|
+
specification_version: 4
|
|
200
|
+
summary: Generates the tmuxinator configuration for all VMs of a BOSH deployment
|
|
201
|
+
test_files: []
|