Merge pull request #136 from fnichol/foreman
--- Simple enough, but this helps when re-exporting runit services. Cheers, and thanks! Conflicts: spec/foreman/export/runit_spec.rb
This commit is contained in:
@@ -51,7 +51,7 @@ class Foreman::Export::Runit < Foreman::Export::Base
|
|||||||
private
|
private
|
||||||
def create_directory(location)
|
def create_directory(location)
|
||||||
say "creating: #{location}"
|
say "creating: #{location}"
|
||||||
FileUtils.mkdir(location)
|
FileUtils.mkdir_p(location)
|
||||||
end
|
end
|
||||||
|
|
||||||
def inline_variables(command)
|
def inline_variables(command)
|
||||||
|
|||||||
@@ -33,4 +33,8 @@ describe Foreman::Export::Runit, :fakefs do
|
|||||||
example_export_file('runit/app-bravo-1-log-run')
|
example_export_file('runit/app-bravo-1-log-run')
|
||||||
File.read("/tmp/init/app-bravo-1/env/PORT").should == "5100\n"
|
File.read("/tmp/init/app-bravo-1/env/PORT").should == "5100\n"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it "creates a full path to the export directory" do
|
||||||
|
expect { runit.export('/tmp/init', :concurrency => "alpha=2,bravo=1") }.to_not raise_error(Errno::ENOENT)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user