Class: Superhosting::ScriptExecutor::Site
- Defined in:
- lib/superhosting/script_executor/site.rb
Instance Attribute Summary collapse
-
#site ⇒ Object
Returns the value of attribute site.
-
#site_name ⇒ Object
Returns the value of attribute site_name.
Attributes inherited from Container
#container, #container_lib, #container_name, #on_reconfig_only, #registry_path
Attributes inherited from Base
#commands, #config, #lib, #model
Instance Method Summary collapse
-
#initialize(site:, site_name:, **kwargs) ⇒ Site
constructor
A new instance of Site.
Methods inherited from Container
Methods inherited from Base
Methods included from Helpers
#create_conf, #erb, #instance_variables_to_hash, #remove_line_from_file, #write_if_not_exist
Constructor Details
#initialize(site:, site_name:, **kwargs) ⇒ Site
Returns a new instance of Site.
6 7 8 9 10 |
# File 'lib/superhosting/script_executor/site.rb', line 6 def initialize(site:, site_name:, **kwargs) self.site = site self.site_name = site_name super(**kwargs) end |
Instance Attribute Details
#site ⇒ Object
Returns the value of attribute site.
4 5 6 |
# File 'lib/superhosting/script_executor/site.rb', line 4 def site @site end |
#site_name ⇒ Object
Returns the value of attribute site_name.
4 5 6 |
# File 'lib/superhosting/script_executor/site.rb', line 4 def site_name @site_name end |