Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions lib/foreman/export/base.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require "foreman/export"
require "ostruct"
require "pathname"
require "shellwords"

Expand All @@ -13,6 +12,9 @@ class Foreman::Export::Base
# deprecated
attr_reader :port

# deprecated
ProcessStruct = Struct.new(:name, :process)

def initialize(location, engine, options={})
@location = location
@engine = engine
Expand All @@ -35,10 +37,7 @@ def template
def @engine.procfile
Foreman::Export::Base.warn_deprecation!
@processes.map do |process|
OpenStruct.new(
:name => @names[process],
:process => process
)
ProcessStruct.new(@names[process], process)
end
end
end
Expand Down
1 change: 0 additions & 1 deletion spec/foreman/process_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
require 'spec_helper'
require 'foreman/process'
require 'ostruct'
require 'timeout'
require 'tmpdir'

Expand Down