Class: Foreman::Export::Base
- Inherits:
-
Object
- Object
- Foreman::Export::Base
- Defined in:
- lib/foreman/export/base.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
-
#concurrency ⇒ Object
readonly
Returns the value of attribute concurrency.
-
#engine ⇒ Object
readonly
Returns the value of attribute engine.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#log ⇒ Object
readonly
Returns the value of attribute log.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
-
#template ⇒ Object
readonly
Returns the value of attribute template.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
- #export ⇒ Object
-
#initialize(location, engine, options = {}) ⇒ Base
constructor
A new instance of Base.
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, ={}) @location = location @engine = engine @app = [:app] @log = [:log] @port = [:port] @user = [:user] @template = [:template] @concurrency = Foreman::Utils.parse_concurrency([:concurrency]) end |
Instance Attribute Details
#app ⇒ Object (readonly)
Returns the value of attribute app.
6 7 8 |
# File 'lib/foreman/export/base.rb', line 6 def app @app end |
#concurrency ⇒ Object (readonly)
Returns the value of attribute concurrency.
6 7 8 |
# File 'lib/foreman/export/base.rb', line 6 def concurrency @concurrency end |
#engine ⇒ Object (readonly)
Returns the value of attribute engine.
6 7 8 |
# File 'lib/foreman/export/base.rb', line 6 def engine @engine end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
6 7 8 |
# File 'lib/foreman/export/base.rb', line 6 def location @location end |
#log ⇒ Object (readonly)
Returns the value of attribute log.
6 7 8 |
# File 'lib/foreman/export/base.rb', line 6 def log @log end |
#port ⇒ Object (readonly)
Returns the value of attribute port.
6 7 8 |
# File 'lib/foreman/export/base.rb', line 6 def port @port end |
#template ⇒ Object (readonly)
Returns the value of attribute template.
6 7 8 |
# File 'lib/foreman/export/base.rb', line 6 def template @template end |
#user ⇒ Object (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
#export ⇒ Object
19 20 21 |
# File 'lib/foreman/export/base.rb', line 19 def export raise "export method must be overridden" end |