Class: TeutonHost
- Inherits:
-
Object
- Object
- TeutonHost
- Defined in:
- lib/teuton/case/builtin/teuton_host.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
Instance Method Summary collapse
- #file(param) ⇒ Object
-
#initialize(parent, host = "localhost") ⇒ TeutonHost
constructor
A new instance of TeutonHost.
- #package(param) ⇒ Object
- #service(param) ⇒ Object
- #user(param) ⇒ Object
Constructor Details
#initialize(parent, host = "localhost") ⇒ TeutonHost
10 11 12 13 |
# File 'lib/teuton/case/builtin/teuton_host.rb', line 10 def initialize(parent, host = "localhost") @parent = parent @host = host end |
Instance Attribute Details
#host ⇒ Object (readonly)
Returns the value of attribute host.
8 9 10 |
# File 'lib/teuton/case/builtin/teuton_host.rb', line 8 def host @host end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
7 8 9 |
# File 'lib/teuton/case/builtin/teuton_host.rb', line 7 def parent @parent end |
Instance Method Details
#file(param) ⇒ Object
15 16 17 |
# File 'lib/teuton/case/builtin/teuton_host.rb', line 15 def file(param) TeutonFile.new(self, param) end |
#package(param) ⇒ Object
19 20 21 |
# File 'lib/teuton/case/builtin/teuton_host.rb', line 19 def package(param) Package.new(self, param) end |