Class: Superhosting::ConfigExecutor::Site

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

Instance Attribute Summary collapse

Attributes inherited from Container

#container, #mux, #mux_name, #registry_files

Attributes inherited from Base

#commands, #docker_api, #etc, #lib, #model

Instance Method Summary collapse

Methods inherited from Container

#config, #mkdir, #on_reconfig, #run_commands

Methods inherited from Base

#execute

Methods included from Helpers

#instance_variables_to_hash

Methods included from Helper::Config

#_config, #_config_options, #_save_registry!, #apply, #configure, #configure_with_apply, #reconfig, #unapply, #unconfigure, #unconfigure_with_unapply

Methods included from Helper::Cmd

#_command, #_command_without_debug, #command, #command!

Methods included from Helper::File

#chmod!, #chown!, #chown_r!, #safe_link!, #safe_unlink!

Methods included from Helper::Logger

#__debug, #__dry_run, #__dry_run=, #__logger, #__logger=, #debug, #debug_block, #debug_operation, #indent, #indent=, #indent_reset, #indent_step, #indent_step_back, #info, #storage, #t, #with_dry_run, #with_indent, #with_logger

Constructor Details

#initialize(site:, **kwargs) ⇒ Site

Returns a new instance of Site.



6
7
8
9
# File 'lib/superhosting/config_executor/site.rb', line 6

def initialize(site:, **kwargs)
  self.site = site
  super(**kwargs)
end

Instance Attribute Details

#siteObject

Returns the value of attribute site.



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

def site
  @site
end