Class: Unfold::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/unfold.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#appnameObject

Returns the value of attribute appname.



22
23
24
# File 'lib/unfold.rb', line 22

def appname
  @appname
end

#envObject

Returns the value of attribute env.



22
23
24
# File 'lib/unfold.rb', line 22

def env
  @env
end

#remote_destinationObject

Returns the value of attribute remote_destination.



22
23
24
# File 'lib/unfold.rb', line 22

def remote_destination
  @remote_destination
end

#remote_hostObject

Returns the value of attribute remote_host.



22
23
24
# File 'lib/unfold.rb', line 22

def remote_host
  @remote_host
end

#remote_userObject

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_hashObject

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