Class: EySecrets::Instance

Inherits:
Struct
  • Object
show all
Defined in:
lib/ey_secrets/models/instance.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#app_nameObject

Returns the value of attribute app_name

Returns:

  • (Object)

    the current value of app_name



4
5
6
# File 'lib/ey_secrets/models/instance.rb', line 4

def app_name
  @app_name
end

#environmentObject

Returns the value of attribute environment.



5
6
7
# File 'lib/ey_secrets/models/instance.rb', line 5

def environment
  @environment
end

#host_nameObject

Returns the value of attribute host_name

Returns:

  • (Object)

    the current value of host_name



4
5
6
# File 'lib/ey_secrets/models/instance.rb', line 4

def host_name
  @host_name
end

#user_nameObject

Returns the value of attribute user_name

Returns:

  • (Object)

    the current value of user_name



4
5
6
# File 'lib/ey_secrets/models/instance.rb', line 4

def user_name
  @user_name
end

Instance Method Details

#current_app_dirObject



11
12
13
# File 'lib/ey_secrets/models/instance.rb', line 11

def current_app_dir
  "/data/#{app_name}/current/"
end

#shared_config_dirObject



7
8
9
# File 'lib/ey_secrets/models/instance.rb', line 7

def shared_config_dir
  "/data/#{app_name}/shared/config"
end