lib/vx/lib/container/local.rb in vx-lib-container-0.5.11 vs lib/vx/lib/container/local.rb in vx-lib-container-0.6.0
- old
+ new
@@ -15,21 +15,17 @@
@work_dir = options[:work_dir] || default_work_dir
@work_dir = File.expand_path(@work_dir)
end
def start(&block)
- instrument( "create", container_type: 'local', container: { work_dir: work_dir }) do
- FileUtils.rm_rf(work_dir)
- FileUtils.mkdir_p(work_dir)
- end
+ FileUtils.rm_rf(work_dir)
+ FileUtils.mkdir_p(work_dir)
begin
spawner = Spawner.new(work_dir)
yield spawner
ensure
- instrument( "kill", container_type: 'local', container: { work_dir: work_dir }) do
- FileUtils.mkdir_p(work_dir)
- end
+ FileUtils.mkdir_p(work_dir)
end
end
private