Class: Dev::Docker::Compose::Config
- Defined in:
- lib/firespring_dev_commands/docker/compose.rb
Overview
Config object for setting top level docker compose config options
Instance Attribute Summary collapse
-
#compose_files ⇒ Object
Returns the value of attribute compose_files.
-
#max_version ⇒ Object
Returns the value of attribute max_version.
-
#min_version ⇒ Object
Returns the value of attribute min_version.
-
#project_dir ⇒ Object
Returns the value of attribute project_dir.
-
#project_name ⇒ Object
Returns the value of attribute project_name.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
15 16 17 18 19 20 21 |
# File 'lib/firespring_dev_commands/docker/compose.rb', line 15 def initialize self.project_dir = DEV_COMMANDS_ROOT_DIR self.project_name = DEV_COMMANDS_PROJECT_NAME self.compose_files = ["#{DEV_COMMANDS_ROOT_DIR}/docker-compose.yml"] self.min_version = '2.0.0' self.max_version = nil end |
Instance Attribute Details
#compose_files ⇒ Object
Returns the value of attribute compose_files
14 15 16 |
# File 'lib/firespring_dev_commands/docker/compose.rb', line 14 def compose_files @compose_files end |
#max_version ⇒ Object
Returns the value of attribute max_version
14 15 16 |
# File 'lib/firespring_dev_commands/docker/compose.rb', line 14 def max_version @max_version end |
#min_version ⇒ Object
Returns the value of attribute min_version
14 15 16 |
# File 'lib/firespring_dev_commands/docker/compose.rb', line 14 def min_version @min_version end |
#project_dir ⇒ Object
Returns the value of attribute project_dir
14 15 16 |
# File 'lib/firespring_dev_commands/docker/compose.rb', line 14 def project_dir @project_dir end |
#project_name ⇒ Object
Returns the value of attribute project_name
14 15 16 |
# File 'lib/firespring_dev_commands/docker/compose.rb', line 14 def project_name @project_name end |