threeman 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/threeman/cli.rb +6 -1
- data/lib/threeman/command.rb +1 -1
- data/lib/threeman/procfile.rb +3 -2
- data/lib/threeman/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d45d2cd254f2c7ac356e640e3b4abce6a3295423a67c3db6722a9eabe8e92fa0
|
4
|
+
data.tar.gz: a31bbf2712949c338a831bcf598468812c63d0aeba81b54baa8ceeee3ca495c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9404cf7e0e41790b19a0ee22adf902a1963932d9cc465c984b61824d6877af66f07c4f9e93c059ef7eb0d7b3e10a024ccb409d968788f35cea7b6be351061284
|
7
|
+
data.tar.gz: 782b73e714aac292a4ef3af01699fd07e892d540d6d53b071be9ea7d0a54c98f3e4c7485dbac202af1a25c8c39572b0d63832105f082b6dd31bd256b46515c61
|
data/CHANGELOG.md
CHANGED
data/lib/threeman/cli.rb
CHANGED
@@ -41,12 +41,17 @@ module Threeman
|
|
41
41
|
desc: "The port to run the application on. This will set the PORT environment variable.",
|
42
42
|
type: :numeric
|
43
43
|
)
|
44
|
+
option(
|
45
|
+
:command_prefix,
|
46
|
+
desc: "If specified, prefix each command in Procfile with this string",
|
47
|
+
type: :string
|
48
|
+
)
|
44
49
|
|
45
50
|
def start
|
46
51
|
procfile_name = options[:procfile]
|
47
52
|
pwd = options[:root] || Dir.pwd
|
48
53
|
procfile = Threeman::Procfile.new(File.expand_path(procfile_name, pwd))
|
49
|
-
commands = procfile.commands(pwd, options[:port] || 5000)
|
54
|
+
commands = procfile.commands(pwd, options[:port] || 5000, options[:command_prefix])
|
50
55
|
|
51
56
|
frontend_name = options[:frontend] || auto_frontend
|
52
57
|
unless frontend_name
|
data/lib/threeman/command.rb
CHANGED
data/lib/threeman/procfile.rb
CHANGED
@@ -3,11 +3,12 @@ require 'threeman/command'
|
|
3
3
|
|
4
4
|
module Threeman
|
5
5
|
class Procfile < Foreman::Procfile
|
6
|
-
def commands(workdir, port)
|
6
|
+
def commands(workdir, port, command_prefix)
|
7
7
|
commands = []
|
8
8
|
|
9
9
|
entries do |name, command|
|
10
|
-
|
10
|
+
command_with_prefix = [command_prefix, command].compact.join(' ')
|
11
|
+
commands << Threeman::Command.new(name, command_with_prefix, workdir, port)
|
11
12
|
end
|
12
13
|
|
13
14
|
commands
|
data/lib/threeman/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: threeman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nat Budin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: foreman
|
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
145
|
version: '0'
|
146
146
|
requirements: []
|
147
147
|
rubyforge_project:
|
148
|
-
rubygems_version: 2.7.
|
148
|
+
rubygems_version: 2.7.6
|
149
149
|
signing_key:
|
150
150
|
specification_version: 4
|
151
151
|
summary: Runs Procfile commands in tabs
|