Class: Flaun::DSLTarget
- Inherits:
- BasicObject
- Defined in:
- lib/flaun/dsl.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
- #host(host) ⇒ Object
-
#initialize(config) ⇒ DSLTarget
constructor
A new instance of DSLTarget.
- #path(path) ⇒ Object
- #port(port) ⇒ Object
- #user(user) ⇒ Object
Constructor Details
#initialize(config) ⇒ DSLTarget
25 26 27 |
# File 'lib/flaun/dsl.rb', line 25 def initialize(config) @config = ::Flaun::TargetConfig.new(config) end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
23 24 25 |
# File 'lib/flaun/dsl.rb', line 23 def config @config end |
Instance Method Details
#host(host) ⇒ Object
37 38 39 |
# File 'lib/flaun/dsl.rb', line 37 def host(host) @config.host = host end |
#path(path) ⇒ Object
41 42 43 |
# File 'lib/flaun/dsl.rb', line 41 def path(path) @config.path = path end |
#port(port) ⇒ Object
33 34 35 |
# File 'lib/flaun/dsl.rb', line 33 def port(port) @config.forward_host_port = port end |
#user(user) ⇒ Object
29 30 31 |
# File 'lib/flaun/dsl.rb', line 29 def user(user) @config.user = user end |