Class: Dev::Docker::Compose::Config

Inherits:
Struct
  • Object
show all
Defined in:
lib/firespring_dev_commands/docker/compose.rb

Overview

Config object for setting top level docker compose config options

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_filesObject

Returns the value of attribute compose_files

Returns:

  • (Object)

    the current value of compose_files



14
15
16
# File 'lib/firespring_dev_commands/docker/compose.rb', line 14

def compose_files
  @compose_files
end

#max_versionObject

Returns the value of attribute max_version

Returns:

  • (Object)

    the current value of max_version



14
15
16
# File 'lib/firespring_dev_commands/docker/compose.rb', line 14

def max_version
  @max_version
end

#min_versionObject

Returns the value of attribute min_version

Returns:

  • (Object)

    the current value of min_version



14
15
16
# File 'lib/firespring_dev_commands/docker/compose.rb', line 14

def min_version
  @min_version
end

#project_dirObject

Returns the value of attribute project_dir

Returns:

  • (Object)

    the current value of project_dir



14
15
16
# File 'lib/firespring_dev_commands/docker/compose.rb', line 14

def project_dir
  @project_dir
end

#project_nameObject

Returns the value of attribute project_name

Returns:

  • (Object)

    the current value of project_name



14
15
16
# File 'lib/firespring_dev_commands/docker/compose.rb', line 14

def project_name
  @project_name
end