Class: Unfold::Config
- Inherits:
-
Object
- Object
- Unfold::Config
- Defined in:
- lib/unfold.rb
Instance Attribute Summary collapse
-
#appname ⇒ Object
Returns the value of attribute appname.
-
#env ⇒ Object
Returns the value of attribute env.
-
#remote_destination ⇒ Object
Returns the value of attribute remote_destination.
-
#remote_host ⇒ Object
Returns the value of attribute remote_host.
-
#remote_user ⇒ Object
Returns the value of attribute remote_user.
Instance Method Summary collapse
-
#to_hash ⇒ Object
hashify config object not used anywhere.
Instance Attribute Details
#appname ⇒ Object
Returns the value of attribute appname.
22 23 24 |
# File 'lib/unfold.rb', line 22 def appname @appname end |
#env ⇒ Object
Returns the value of attribute env.
22 23 24 |
# File 'lib/unfold.rb', line 22 def env @env end |
#remote_destination ⇒ Object
Returns the value of attribute remote_destination.
22 23 24 |
# File 'lib/unfold.rb', line 22 def remote_destination @remote_destination end |
#remote_host ⇒ Object
Returns the value of attribute remote_host.
22 23 24 |
# File 'lib/unfold.rb', line 22 def remote_host @remote_host end |
#remote_user ⇒ Object
Returns the value of attribute remote_user.
22 23 24 |
# File 'lib/unfold.rb', line 22 def remote_user @remote_user end |
Instance Method Details
#to_hash ⇒ Object
hashify config object not used anywhere
26 27 28 29 30 31 32 |
# File 'lib/unfold.rb', line 26 def to_hash hash = {} self.instance_variables.each do |ivar| hash[ivar.to_s.delete("@")] = self.instance_variable_get(ivar) end return hash end |