Class: Foreman::Export::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/foreman/export/base.rb

Direct Known Subclasses

Bluepill, Inittab, Runit, Supervisord, Upstart

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location, engine, options = {}) ⇒ Base

Returns a new instance of Base.



8
9
10
11
12
13
14
15
16
17
# File 'lib/foreman/export/base.rb', line 8

def initialize(location, engine, options={})
  @location    = location
  @engine      = engine
  @app         = options[:app]
  @log         = options[:log]
  @port        = options[:port]
  @user        = options[:user]
  @template    = options[:template]
  @concurrency = Foreman::Utils.parse_concurrency(options[:concurrency])
end

Instance Attribute Details

#appObject (readonly)

Returns the value of attribute app.



6
7
8
# File 'lib/foreman/export/base.rb', line 6

def app
  @app
end

#concurrencyObject (readonly)

Returns the value of attribute concurrency.



6
7
8
# File 'lib/foreman/export/base.rb', line 6

def concurrency
  @concurrency
end

#engineObject (readonly)

Returns the value of attribute engine.



6
7
8
# File 'lib/foreman/export/base.rb', line 6

def engine
  @engine
end

#locationObject (readonly)

Returns the value of attribute location.



6
7
8
# File 'lib/foreman/export/base.rb', line 6

def location
  @location
end

#logObject (readonly)

Returns the value of attribute log.



6
7
8
# File 'lib/foreman/export/base.rb', line 6

def log
  @log
end

#portObject (readonly)

Returns the value of attribute port.



6
7
8
# File 'lib/foreman/export/base.rb', line 6

def port
  @port
end

#templateObject (readonly)

Returns the value of attribute template.



6
7
8
# File 'lib/foreman/export/base.rb', line 6

def template
  @template
end

#userObject (readonly)

Returns the value of attribute user.



6
7
8
# File 'lib/foreman/export/base.rb', line 6

def user
  @user
end

Instance Method Details

#exportObject



19
20
21
# File 'lib/foreman/export/base.rb', line 19

def export
  raise "export method must be overridden"
end