Module: Servitor

Defined in:
lib/cli/cli.rb,
lib/servitor.rb,
lib/service/service.rb,
lib/provisioners/ssh_key.rb,
lib/service/service_linker.rb,
lib/provisioners/veewee_box.rb,
lib/resource/mysql_resource.rb,
lib/service/service_locator.rb,
lib/provisioners/vagrant_box.rb,
lib/provisioners/vagrantfile.rb,
lib/deployment/bundle_deployer.rb,
lib/deployment/envdir_deployer.rb,
lib/service/service_file_parser.rb,
lib/helpers/child_process_helper.rb,
lib/infrastructure/infrastructure.rb,
lib/service/service_definition/variable.rb,
lib/service/service_graph/service_graph.rb,
lib/configuration/configuration_resolver.rb,
lib/provisioners/vagrant_box_provisioner.rb,
lib/provisioners/vagrant_box_ruby_installer.rb,
lib/service/service_graph/service_graph_node.rb,
lib/configuration/yaml_configuration_provider.rb,
lib/infrastructure/infrastructure_provisioner.rb,
lib/infrastructure/infrastructure_requirements.rb,
lib/service/service_definition/deployment_stages.rb,
lib/service/service_definition/service_definition.rb,
lib/service/service_graph/service_graph_flattener.rb,
lib/service/service_definition/service_configuration.rb,
lib/service/service_definition/resource_configuration.rb

Overview

Runs dependent services in a SOA

Defined Under Namespace

Modules: ChildProcessHelper, HasVariables Classes: BundleDeployer, CLI, ConfigurationResolver, CyclicDependencyError, DeploymentStages, EnvdirDeployer, Infrastructure, InfrastructureProvisioner, InfrastructureRequirements, InvalidNameError, MysqlResource, ResourceConfiguration, Service, ServiceConfiguration, ServiceDefinition, ServiceFileParser, ServiceGraph, ServiceGraphFlattener, ServiceGraphNode, ServiceLinker, ServiceLocator, ServitorChildProcessError, ServitorRootException, SshKey, UnsupportedOsRequirementError, VagrantBaseBoxError, VagrantBox, VagrantBoxProvisioner, VagrantBoxRubyInstaller, Vagrantfile, Variable, VeeweeBox, YamlConfigurationProvider

Class Method Summary collapse

Class Method Details

.boxes_rootObject



34
35
36
# File 'lib/servitor.rb', line 34

def self.boxes_root
  File.join(Servitor.data_root, 'boxes')
end

.data_rootObject



30
31
32
# File 'lib/servitor.rb', line 30

def self.data_root
  File.join(Servitor.root, '.servitor')
end

.rootObject



21
22
23
# File 'lib/servitor.rb', line 21

def self.root
  @root
end

.root=(path) ⇒ Object



25
26
27
28
# File 'lib/servitor.rb', line 25

def self.root=(path)
  raise ServitorRootException, 'Servitor root has already been set; it can only be set once.' if @root
  @root = path
end

.ssh_dirObject



42
43
44
# File 'lib/servitor.rb', line 42

def self.ssh_dir
  File.join(Servitor.data_root, 'ssh')
end

.vagrantfileObject



38
39
40
# File 'lib/servitor.rb', line 38

def self.vagrantfile
  File.join(Servitor.data_root, 'Vagrantfile')
end