Dev commited on 2018-06-19 16:38:24
Showing 1 changed files, with 1 additions and 4 deletions.
| ... | ... |
@@ -44,9 +44,6 @@ For file operations, I rely on `FileUtils` provided by ruby core, whereas I exec |
| 44 | 44 |
|
| 45 | 45 |
Config file is loaded at startup and various checks done to make sure configuration is is correct... within the bounds of this task. For example, for file resource `desired_state` is checked to be one of available types; and it is made sure that `local_file` is readable _if_ state is set to present. If there are dependencies mentioned for a service, a pointer to the resource is held respectively in `depends_file` and `depends_package` in `::RCM::Package` object. |
| 46 | 46 |
|
| 47 |
-State is maintained in 2 objects: |
|
| 48 |
- |
|
| 49 |
-1. `@wanted` holds the state as mentioned in `config.yaml` or `config_<env>.yaml`. It is populated in `::RCM::ConfigManager` during initialization. |
|
| 50 |
-2. `@got` holds the state of resources currently present on the system. |
|
| 47 |
+`@wanted` holds the state as mentioned in `config.yaml` or `config_<env>.yaml`. It is populated in `::RCM::ConfigManager` during initialization. |
|
| 51 | 48 |
|
| 52 | 49 |
I first get `get_current_state` of packages and `converge_packages` because in current configuration, there is a file that appears only upon installation of `apache2` package. I then `get_current_state` of files and `converge_files`. Finally `restart_services_if_needed`. |
| 53 | 50 |