remove screen option, seems too hokey
This commit is contained in:
1 parent
51513dcb6d
commit
151ddb45c8
3 files changed
-20
No files matched your search
@@ -9,7 +9,6 @@ class Foreman::CLI < Thor
|
|||||||
|
|
||||||
desc "start [PROCESS]", "Start the application, or a specific process"
|
desc "start [PROCESS]", "Start the application, or a specific process"
|
||||||
|
|
||||||
method_option :screen, :type => :boolean, :aliases => "-s"
|
|
||||||
method_option :concurrency, :type => :string, :aliases => "-c",
|
method_option :concurrency, :type => :string, :aliases => "-c",
|
||||||
:banner => '"alpha=5,bar=3"'
|
:banner => '"alpha=5,bar=3"'
|
||||||
|
|
||||||
@@ -18,8 +17,6 @@ class Foreman::CLI < Thor
|
|||||||
|
|
||||||
if process
|
if process
|
||||||
engine.execute(process, options)
|
engine.execute(process, options)
|
||||||
elsif options[:screen]
|
|
||||||
engine.screen
|
|
||||||
else
|
else
|
||||||
engine.start(options)
|
engine.start(options)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -58,19 +58,6 @@ class Foreman::Engine
|
|||||||
watch_for_termination
|
watch_for_termination
|
||||||
end
|
end
|
||||||
|
|
||||||
def screen
|
|
||||||
tempfile = Tempfile.new("foreman")
|
|
||||||
tempfile.puts "sessionname foreman"
|
|
||||||
processes.each do |name, process|
|
|
||||||
tempfile.puts "screen -t #{name} #{process.command}"
|
|
||||||
end
|
|
||||||
tempfile.close
|
|
||||||
|
|
||||||
system "screen -c #{tempfile.path}"
|
|
||||||
|
|
||||||
tempfile.delete
|
|
||||||
end
|
|
||||||
|
|
||||||
def execute(name, options={})
|
def execute(name, options={})
|
||||||
processes(options[:concurrency]).values.select do |process|
|
processes(options[:concurrency]).values.select do |process|
|
||||||
process.name =~ /\A#{name}\.?\d*\Z/
|
process.name =~ /\A#{name}\.?\d*\Z/
|
||||||
|
|||||||
@@ -29,10 +29,6 @@ The following options control how the application is run:
|
|||||||
Specify the number of each process type to run. The value passed in
|
Specify the number of each process type to run. The value passed in
|
||||||
should be in the format `process=num,process=num`
|
should be in the format `process=num,process=num`
|
||||||
|
|
||||||
* `-s`, `--screen`:
|
|
||||||
Run the application as a series of screen windows rather than interleaved
|
|
||||||
in stdout.
|
|
||||||
|
|
||||||
## EXPORTING
|
## EXPORTING
|
||||||
|
|
||||||
`foreman export` is used to export your application to another process
|
`foreman export` is used to export your application to another process
|
||||||
|
|||||||
Reference in new issue
Block a user