tomago 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +16 -0
- data/.rspec +2 -0
- data/CHANGELOG.md +7 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +53 -0
- data/Guardfile +19 -0
- data/LICENSE.txt +22 -0
- data/README.md +40 -0
- data/Rakefile +6 -0
- data/exe/tomago +14 -0
- data/lib/tomago.rb +12 -0
- data/lib/tomago/cli.rb +34 -0
- data/lib/tomago/command.rb +52 -0
- data/lib/tomago/help.rb +9 -0
- data/lib/tomago/help/hello.md +3 -0
- data/lib/tomago/models/pane.rb +9 -0
- data/lib/tomago/models/window.rb +37 -0
- data/lib/tomago/project_generator.rb +28 -0
- data/lib/tomago/project_helpers.rb +15 -0
- data/lib/tomago/project_launcher.rb +50 -0
- data/lib/tomago/templates/launch.ssh.erb +33 -0
- data/lib/tomago/templates/project.yml.erb +13 -0
- data/lib/tomago/version.rb +3 -0
- data/spec/lib/cli_spec.rb +19 -0
- data/spec/spec_helper.rb +22 -0
- data/tomago.gemspec +30 -0
- metadata +171 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e6dad72d09f036138371ec45221b08306fff2e8c
|
4
|
+
data.tar.gz: c753396aa10d1fac48ad37ed9365dcb746112b81
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b648c1a577ac0299c538d54400e08d6e1414b4fa163e5de127e9d672066e5a0dddc192f42be3947dd57b758a9fadf8027f0e3211f8d4ef7b6c5a696eb9e0db67
|
7
|
+
data.tar.gz: a9b8d843694556f042a1e7904c243b40016705de370428c90e6ed04b3213f684850be00846d40cb0e94352caf8917fd9cf07650cac73e1ebbafccaa2d7ed8377
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/CHANGELOG.md
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
tomago (0.1.0)
|
5
|
+
colorize (~> 0.8.1)
|
6
|
+
erubis (~> 2.7)
|
7
|
+
thor (~> 0.20.0)
|
8
|
+
|
9
|
+
GEM
|
10
|
+
remote: https://rubygems.org/
|
11
|
+
specs:
|
12
|
+
byebug (10.0.0)
|
13
|
+
codeclimate-test-reporter (1.0.8)
|
14
|
+
simplecov (<= 0.13)
|
15
|
+
colorize (0.8.1)
|
16
|
+
diff-lcs (1.3)
|
17
|
+
docile (1.1.5)
|
18
|
+
erubis (2.7.0)
|
19
|
+
json (2.1.0)
|
20
|
+
rake (12.3.0)
|
21
|
+
rspec (3.7.0)
|
22
|
+
rspec-core (~> 3.7.0)
|
23
|
+
rspec-expectations (~> 3.7.0)
|
24
|
+
rspec-mocks (~> 3.7.0)
|
25
|
+
rspec-core (3.7.1)
|
26
|
+
rspec-support (~> 3.7.0)
|
27
|
+
rspec-expectations (3.7.0)
|
28
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
29
|
+
rspec-support (~> 3.7.0)
|
30
|
+
rspec-mocks (3.7.0)
|
31
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
32
|
+
rspec-support (~> 3.7.0)
|
33
|
+
rspec-support (3.7.1)
|
34
|
+
simplecov (0.13.0)
|
35
|
+
docile (~> 1.1.0)
|
36
|
+
json (>= 1.8, < 3)
|
37
|
+
simplecov-html (~> 0.10.0)
|
38
|
+
simplecov-html (0.10.2)
|
39
|
+
thor (0.20.0)
|
40
|
+
|
41
|
+
PLATFORMS
|
42
|
+
ruby
|
43
|
+
|
44
|
+
DEPENDENCIES
|
45
|
+
bundler
|
46
|
+
byebug
|
47
|
+
codeclimate-test-reporter
|
48
|
+
rake
|
49
|
+
rspec
|
50
|
+
tomago!
|
51
|
+
|
52
|
+
BUNDLED WITH
|
53
|
+
1.15.4
|
data/Guardfile
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
guard "bundler", cmd: "bundle" do
|
2
|
+
watch("Gemfile")
|
3
|
+
watch(/^.+\.gemspec/)
|
4
|
+
end
|
5
|
+
|
6
|
+
guard :rspec, cmd: "bundle exec rspec" do
|
7
|
+
require "guard/rspec/dsl"
|
8
|
+
dsl = Guard::RSpec::Dsl.new(self)
|
9
|
+
|
10
|
+
# RSpec files
|
11
|
+
rspec = dsl.rspec
|
12
|
+
watch(rspec.spec_helper) { rspec.spec_dir }
|
13
|
+
watch(rspec.spec_support) { rspec.spec_dir }
|
14
|
+
watch(rspec.spec_files)
|
15
|
+
|
16
|
+
# Ruby files
|
17
|
+
ruby = dsl.ruby
|
18
|
+
dsl.watch_spec_files_for(ruby.lib_files)
|
19
|
+
end
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Tung Nguyen
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
# Tomago
|
2
|
+
|
3
|
+
[![Build Status](https://magnum.travis-ci.com/)](https://magnum.travis-ci.com/)
|
4
|
+
[![Code Climate](https://codeclimate.com/)](https://codeclimate.com/)
|
5
|
+
[![Code Climate](https://codeclimate.com/)](https://codeclimate.com/)
|
6
|
+
|
7
|
+
TODO: Write a gem description
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
Add this line to your application's Gemfile:
|
12
|
+
|
13
|
+
```sh
|
14
|
+
gem "tomago"
|
15
|
+
```
|
16
|
+
|
17
|
+
And then execute:
|
18
|
+
|
19
|
+
```sh
|
20
|
+
$ bundle
|
21
|
+
```
|
22
|
+
|
23
|
+
Or install it yourself as:
|
24
|
+
|
25
|
+
```sh
|
26
|
+
$ gem install tomago
|
27
|
+
```
|
28
|
+
## Usage
|
29
|
+
|
30
|
+
```sh
|
31
|
+
tomago hello yourname
|
32
|
+
```
|
33
|
+
|
34
|
+
## Contributing
|
35
|
+
|
36
|
+
1. Fork it
|
37
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
38
|
+
3. Commit your changes (`git commit -am "Add some feature"`)
|
39
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
40
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
data/exe/tomago
ADDED
data/lib/tomago.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
$:.unshift(File.expand_path("../", __FILE__))
|
2
|
+
require "tomago/version"
|
3
|
+
require "tomago/project_helpers"
|
4
|
+
require "tomago/project_generator"
|
5
|
+
require "tomago/project_launcher"
|
6
|
+
require "erubis"
|
7
|
+
|
8
|
+
module Tomago
|
9
|
+
autoload :Help, "tomago/help"
|
10
|
+
autoload :Command, "tomago/command"
|
11
|
+
autoload :CLI, "tomago/cli"
|
12
|
+
end
|
data/lib/tomago/cli.rb
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
module Tomago
|
2
|
+
class CLI < Command
|
3
|
+
class_option :verbose, type: :boolean
|
4
|
+
class_option :noop, type: :boolean
|
5
|
+
|
6
|
+
desc "hello NAME", "say hello to NAME"
|
7
|
+
long_desc Help.text(:hello)
|
8
|
+
option :from, desc: "from person"
|
9
|
+
def hello(name="you")
|
10
|
+
puts "from: #{options[:from]}" if options[:from]
|
11
|
+
puts "Hello #{name}"
|
12
|
+
end
|
13
|
+
|
14
|
+
desc "version", "prints version"
|
15
|
+
def version
|
16
|
+
puts Tomago::VERSION
|
17
|
+
end
|
18
|
+
|
19
|
+
desc "new NAME", "generate a new project workspace configuration file"
|
20
|
+
def new(name)
|
21
|
+
ProjectGenerator.new(name)
|
22
|
+
end
|
23
|
+
|
24
|
+
desc "[launch] NAME", "launch tmate with specific project configuration"
|
25
|
+
def launch(name)
|
26
|
+
ProjectLauncher.new(name)
|
27
|
+
end
|
28
|
+
|
29
|
+
desc "[debug] NAME", "debug script to start tmate with specific project configuration"
|
30
|
+
def debug(name)
|
31
|
+
ProjectLauncher.new(name, debug: true)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
require "thor"
|
2
|
+
|
3
|
+
# Override thor's long_desc identation behavior
|
4
|
+
# https://github.com/erikhuda/thor/issues/398
|
5
|
+
class Thor
|
6
|
+
module Shell
|
7
|
+
class Basic
|
8
|
+
def print_wrapped(message, options = {})
|
9
|
+
message = "\n#{message}" unless message[0] == "\n"
|
10
|
+
stdout.puts message
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
module Tomago
|
17
|
+
class Command < Thor
|
18
|
+
class << self
|
19
|
+
def dispatch(m, args, options, config)
|
20
|
+
# Allow calling for help via:
|
21
|
+
# tomago command help
|
22
|
+
# tomago command -h
|
23
|
+
# tomago command --help
|
24
|
+
# tomago command -D
|
25
|
+
#
|
26
|
+
# as well thor's normal way:
|
27
|
+
#
|
28
|
+
# tomago help command
|
29
|
+
help_flags = Thor::HELP_MAPPINGS + ["help"]
|
30
|
+
if args.length > 1 && !(args & help_flags).empty?
|
31
|
+
args -= help_flags
|
32
|
+
args.insert(-2, "help")
|
33
|
+
end
|
34
|
+
|
35
|
+
# tomago version
|
36
|
+
# tomago --version
|
37
|
+
# tomago -v
|
38
|
+
version_flags = ["--version", "-v"]
|
39
|
+
if args.length == 1
|
40
|
+
|
41
|
+
if !(args & version_flags).empty?
|
42
|
+
args = ["version"]
|
43
|
+
else
|
44
|
+
args.unshift("launch")
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
super
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
data/lib/tomago/help.rb
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
require 'tomago/models/pane'
|
2
|
+
|
3
|
+
module Tomago::Models
|
4
|
+
class Window
|
5
|
+
attr_reader :index, :window_config, :panes, :primary_pane, :secondary_panes
|
6
|
+
def initialize(index, window_config)
|
7
|
+
@index = index
|
8
|
+
@window_config = window_config #["layout"] || "even-horizontal"
|
9
|
+
load_panes
|
10
|
+
end
|
11
|
+
|
12
|
+
def name
|
13
|
+
window_config.keys[0]
|
14
|
+
end
|
15
|
+
|
16
|
+
def layout
|
17
|
+
window_config.values[0]["layout"] || "even-horizontal"
|
18
|
+
end
|
19
|
+
|
20
|
+
def single_pane?
|
21
|
+
panes.length == 1
|
22
|
+
end
|
23
|
+
|
24
|
+
private
|
25
|
+
|
26
|
+
def load_panes
|
27
|
+
temp_panes = (window_config.values[0]["panes"] || default_panes).clone
|
28
|
+
@primary_pane = Tomago::Models::Pane.new(temp_panes.shift)
|
29
|
+
@secondary_panes = (temp_panes || []).map{ |p| Tomago::Models::Pane.new(p) }
|
30
|
+
@panes = [@primary_pane] + @secondary_panes
|
31
|
+
end
|
32
|
+
|
33
|
+
def default_panes
|
34
|
+
[ window_config.values[0] ]
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module Tomago
|
2
|
+
class ProjectGenerator
|
3
|
+
include Tomago::ProjectHelpers
|
4
|
+
|
5
|
+
def initialize(name)
|
6
|
+
@project_name = name
|
7
|
+
ensure_tomago_dir
|
8
|
+
generate_project_file
|
9
|
+
launch_editor
|
10
|
+
end
|
11
|
+
|
12
|
+
private
|
13
|
+
|
14
|
+
def generate_project_file
|
15
|
+
out_file = File.new(project_file, "w")
|
16
|
+
out_file.puts(generate_project_configuration)
|
17
|
+
out_file.close
|
18
|
+
end
|
19
|
+
|
20
|
+
def generate_project_configuration
|
21
|
+
require 'erubis'
|
22
|
+
input = File.read('lib/tomago/templates/project.yml.erb')
|
23
|
+
eruby = Erubis::Eruby.new(input)
|
24
|
+
eruby.result(binding())
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Tomago::ProjectHelpers
|
2
|
+
attr_reader :project_name
|
3
|
+
|
4
|
+
def project_file
|
5
|
+
"#{ENV["HOME"]}/.tomago/#{project_name}.yml"
|
6
|
+
end
|
7
|
+
|
8
|
+
def ensure_tomago_dir
|
9
|
+
return if Dir.exists?("#{ENV["HOME"]}/.tomago/")
|
10
|
+
Dir.mkdir("#{ENV["HOME"]}/.tomago/")
|
11
|
+
end
|
12
|
+
def launch_editor
|
13
|
+
Kernel.system("$EDITOR #{project_file}")
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
require "YAML"
|
2
|
+
require 'tomago/models/window'
|
3
|
+
module Tomago
|
4
|
+
class ProjectLauncher
|
5
|
+
include Tomago::ProjectHelpers
|
6
|
+
|
7
|
+
attr_reader :windows, :primary_window, :secondary_windows
|
8
|
+
|
9
|
+
def initialize(name, debug: false)
|
10
|
+
@project_name = name
|
11
|
+
load_windows
|
12
|
+
|
13
|
+
content = File.read('lib/tomago/templates/launch.ssh.erb')
|
14
|
+
if debug
|
15
|
+
puts(::Erubis::Eruby.new(content).result(binding))
|
16
|
+
else
|
17
|
+
Kernel.exec(::Erubis::Eruby.new(content).result(binding))
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
private
|
22
|
+
|
23
|
+
def project_config
|
24
|
+
@project_config ||= YAML.load(File.read(project_file))
|
25
|
+
end
|
26
|
+
|
27
|
+
def root_directory
|
28
|
+
project_config["root"]
|
29
|
+
end
|
30
|
+
|
31
|
+
def socket
|
32
|
+
project_config["name"]
|
33
|
+
end
|
34
|
+
|
35
|
+
def window_names
|
36
|
+
@windows.map{|w|w.name}
|
37
|
+
end
|
38
|
+
|
39
|
+
private
|
40
|
+
|
41
|
+
def load_windows
|
42
|
+
windows = project_config["windows"].clone
|
43
|
+
@primary_window = Tomago::Models::Window.new(1, windows.shift)
|
44
|
+
@secondary_windows = windows.each_with_index.map do |w, i|
|
45
|
+
Tomago::Models::Window.new(i + 2, w)
|
46
|
+
end
|
47
|
+
@windows = [@primary_window] + @secondary_windows
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
#!<%= ENV["SHELL"] || "/bin/bash" %>
|
2
|
+
|
3
|
+
# Clear rbenv variables before starting tmux
|
4
|
+
unset RBENV_VERSION
|
5
|
+
unset RBENV_DIR
|
6
|
+
|
7
|
+
cd <%= project_config["root"] %>
|
8
|
+
|
9
|
+
tmate -S <%= socket %> new-session -d -n '<%= primary_window.name %>'
|
10
|
+
|
11
|
+
<% secondary_windows.each do |window| %>
|
12
|
+
tmate -S <%= socket %> new-window -n '<%= window.name %>' -d
|
13
|
+
<% end %>
|
14
|
+
|
15
|
+
<% windows.each do |window| %>
|
16
|
+
<% if window.single_pane? %>
|
17
|
+
tmate -S <%= socket %> send-keys -t <%= window.index %> "<%= window.primary_pane.command %>" Enter
|
18
|
+
|
19
|
+
<% else %>
|
20
|
+
tmate -S <%= socket %> send-keys -t <%= window.index %> "<%= window.primary_pane.command %>" Enter
|
21
|
+
|
22
|
+
<% window.secondary_panes.each do | pane | %>
|
23
|
+
tmate -S <%= socket %> split-window -t <%= window.index %> -v -d
|
24
|
+
tmate -S <%= socket %> send-keys -t <%= window.index %> "<%= pane.command %>" Enter
|
25
|
+
<% end %>
|
26
|
+
|
27
|
+
<% end %>
|
28
|
+
|
29
|
+
tmate -S <%= socket %> select-layout -t <%= window.index %> <%= window.layout %>
|
30
|
+
|
31
|
+
<% end %>
|
32
|
+
|
33
|
+
tmate -S <%= socket %> attach
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
# to run specs with what"s remembered from vcr
|
4
|
+
# $ rake
|
5
|
+
#
|
6
|
+
# to run specs with new fresh data from aws api calls
|
7
|
+
# $ rake clean:vcr ; time rake
|
8
|
+
describe Tomago::CLI do
|
9
|
+
before(:all) do
|
10
|
+
@args = "--from Tung"
|
11
|
+
end
|
12
|
+
|
13
|
+
describe "tomago" do
|
14
|
+
it "should hello world" do
|
15
|
+
out = execute("exe/tomago hello world #{@args}")
|
16
|
+
expect(out).to include("from: Tung\nHello world")
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
ENV["TEST"] = "1"
|
2
|
+
|
3
|
+
# require "simplecov"
|
4
|
+
# SimpleCov.start
|
5
|
+
|
6
|
+
require "pp"
|
7
|
+
|
8
|
+
root = File.expand_path("../../", __FILE__)
|
9
|
+
require "#{root}/lib/tomago"
|
10
|
+
|
11
|
+
module Helpers
|
12
|
+
def execute(cmd)
|
13
|
+
puts "Running: #{cmd}" if ENV["DEBUG"]
|
14
|
+
out = `#{cmd}`
|
15
|
+
puts out if ENV["DEBUG"]
|
16
|
+
out
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
RSpec.configure do |c|
|
21
|
+
c.include Helpers
|
22
|
+
end
|
data/tomago.gemspec
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "tomago/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "tomago"
|
8
|
+
spec.version = Tomago::VERSION
|
9
|
+
spec.authors = ["Joel Byler"]
|
10
|
+
spec.email = ["joelbyler@gmail.com"]
|
11
|
+
spec.description = "Workspace initialization for tmate"
|
12
|
+
spec.summary = "Workspace initialization for tmate."
|
13
|
+
spec.homepage = ""
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.bindir = "exe"
|
18
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
|
+
spec.require_paths = ["lib"]
|
21
|
+
|
22
|
+
spec.add_dependency "thor", "~> 0.20.0"
|
23
|
+
spec.add_dependency "colorize", "~> 0.8.1"
|
24
|
+
spec.add_dependency "erubis", "~> 2.7"
|
25
|
+
|
26
|
+
spec.add_development_dependency "bundler"
|
27
|
+
spec.add_development_dependency "byebug"
|
28
|
+
spec.add_development_dependency "rake"
|
29
|
+
spec.add_development_dependency "rspec"
|
30
|
+
end
|
metadata
ADDED
@@ -0,0 +1,171 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tomago
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Joel Byler
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-02-28 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: thor
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.20.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.20.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: colorize
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.8.1
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.8.1
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: erubis
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.7'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.7'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: 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: byebug
|
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: rake
|
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: rspec
|
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
|
+
description: Workspace initialization for tmate
|
112
|
+
email:
|
113
|
+
- joelbyler@gmail.com
|
114
|
+
executables:
|
115
|
+
- tomago
|
116
|
+
extensions: []
|
117
|
+
extra_rdoc_files: []
|
118
|
+
files:
|
119
|
+
- ".gitignore"
|
120
|
+
- ".rspec"
|
121
|
+
- CHANGELOG.md
|
122
|
+
- Gemfile
|
123
|
+
- Gemfile.lock
|
124
|
+
- Guardfile
|
125
|
+
- LICENSE.txt
|
126
|
+
- README.md
|
127
|
+
- Rakefile
|
128
|
+
- exe/tomago
|
129
|
+
- lib/tomago.rb
|
130
|
+
- lib/tomago/cli.rb
|
131
|
+
- lib/tomago/command.rb
|
132
|
+
- lib/tomago/help.rb
|
133
|
+
- lib/tomago/help/hello.md
|
134
|
+
- lib/tomago/models/pane.rb
|
135
|
+
- lib/tomago/models/window.rb
|
136
|
+
- lib/tomago/project_generator.rb
|
137
|
+
- lib/tomago/project_helpers.rb
|
138
|
+
- lib/tomago/project_launcher.rb
|
139
|
+
- lib/tomago/templates/launch.ssh.erb
|
140
|
+
- lib/tomago/templates/project.yml.erb
|
141
|
+
- lib/tomago/version.rb
|
142
|
+
- spec/lib/cli_spec.rb
|
143
|
+
- spec/spec_helper.rb
|
144
|
+
- tomago.gemspec
|
145
|
+
homepage: ''
|
146
|
+
licenses:
|
147
|
+
- MIT
|
148
|
+
metadata: {}
|
149
|
+
post_install_message:
|
150
|
+
rdoc_options: []
|
151
|
+
require_paths:
|
152
|
+
- lib
|
153
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
154
|
+
requirements:
|
155
|
+
- - ">="
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0'
|
158
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
159
|
+
requirements:
|
160
|
+
- - ">="
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
version: '0'
|
163
|
+
requirements: []
|
164
|
+
rubyforge_project:
|
165
|
+
rubygems_version: 2.5.2
|
166
|
+
signing_key:
|
167
|
+
specification_version: 4
|
168
|
+
summary: Workspace initialization for tmate.
|
169
|
+
test_files:
|
170
|
+
- spec/lib/cli_spec.rb
|
171
|
+
- spec/spec_helper.rb
|