Module: MachineConfigure
- Defined in:
- lib/machine_configure.rb,
lib/machine_configure/cli.rb,
lib/machine_configure/meta.rb,
lib/machine_configure/exporter.rb,
lib/machine_configure/importer.rb,
lib/machine_configure/validator.rb,
lib/machine_configure/cli_constants.rb,
lib/machine_configure/helpers/shared.rb,
lib/machine_configure/helpers/message.rb
Defined Under Namespace
Modules: CLIConstants, Helpers Classes: CLI, Exporter, Importer, Validator
Constant Summary collapse
- HOME =
Dir.home.chomp ?/
- DIR =
{ caller: Pathname.new($0).realpath, entry: entry_file, root: root, src: root.join('machine_configure'), helpers: root.join('machine_configure/helpers') }
- HOME_REPLACE_STRING =
This constant will replace any occurences of the user’s home directory path in the docker-machine’s config.json file.
'<REPLACE_WITH_HOME>'- MACHINE_NAME_FILENAME =
This string will be used as the filename for an additional file, which will only have the machine name in it.
'MACHINE_NAME'- DM_STORAGE_PATH =
The path to the docker-machine storage directory.
$MACHINE_STORAGE_PATHor'~/.docker/machine'. (ENV['MACHINE_STORAGE_PATH'] ? ( Pathname.new(ENV['MACHINE_STORAGE_PATH'].chomp(?/)).realpath ) : ( Pathname.new(File.join(HOME, '.docker/machine')) ))
- DM_MACHINES_PATH =
The path to the docker-machine
'machines'directory. DM_STORAGE_PATH.join 'machines'
- DM_CERTS_PATH =
The path to the docker-machine
'certs'directory. DM_STORAGE_PATH.join 'certs'
- DM_BACKUP_PATH =
The paths for the machines backup directories (Created by this script.).
DM_STORAGE_PATH.join("#{DIR[:caller].basename}.backup")
- DM_BACKUP_MACHINES_PATH =
DM_BACKUP_PATH.join('machines')
- DM_BACKUP_CERTS_PATH =
DM_BACKUP_PATH.join('certs')
- VALIDATOR =
Validator.new
- GEM_NAME =
'machine_configure'- VERSION =
'0.0.1'