Not interactive
This commit is contained in:
@@ -42,7 +42,6 @@ class Mrsk::Commands::App < Mrsk::Commands::Base
|
|||||||
|
|
||||||
def run_exec(*command)
|
def run_exec(*command)
|
||||||
docker :run,
|
docker :run,
|
||||||
"-it",
|
|
||||||
"--rm",
|
"--rm",
|
||||||
*rails_master_key_arg,
|
*rails_master_key_arg,
|
||||||
*config.env_args,
|
*config.env_args,
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ class AppCommandTest < ActiveSupport::TestCase
|
|||||||
|
|
||||||
test "run with" do
|
test "run with" do
|
||||||
assert_equal \
|
assert_equal \
|
||||||
[ :docker, :run, "-it", "--rm", "-e", "RAILS_MASTER_KEY=456", "dhh/app:123", "bin/rails", "db:setup" ],
|
[ :docker, :run, "--rm", "-e", "RAILS_MASTER_KEY=456", "dhh/app:123", "bin/rails", "db:setup" ],
|
||||||
@app.run_exec("bin/rails", "db:setup")
|
@app.run_exec("bin/rails", "db:setup")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user