Class: Superhosting::ScriptExecutor::Site

Inherits:
Container show all
Defined in:
lib/superhosting/script_executor/site.rb

Instance Attribute Summary collapse

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

Methods inherited from Container

#config, #on_reconfig

Methods inherited from Base

#execute

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

#siteObject

Returns the value of attribute site.



4
5
6
# File 'lib/superhosting/script_executor/site.rb', line 4

def site
  @site
end

#site_nameObject

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