Class: Kamal::Configuration::Env::Tag

Inherits:
Object
  • Object
show all
Defined in:
lib/kamal/configuration/env/tag.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, config:, secrets:) ⇒ Tag

Returns a new instance of Tag.



4
5
6
7
8
# File 'lib/kamal/configuration/env/tag.rb', line 4

def initialize(name, config:, secrets:)
  @name = name
  @config = config
  @secrets = secrets
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



2
3
4
# File 'lib/kamal/configuration/env/tag.rb', line 2

def config
  @config
end

#nameObject (readonly)

Returns the value of attribute name.



2
3
4
# File 'lib/kamal/configuration/env/tag.rb', line 2

def name
  @name
end

#secretsObject (readonly)

Returns the value of attribute secrets.



2
3
4
# File 'lib/kamal/configuration/env/tag.rb', line 2

def secrets
  @secrets
end

Instance Method Details

#envObject



10
11
12
# File 'lib/kamal/configuration/env/tag.rb', line 10

def env
  Kamal::Configuration::Env.new(config: config, secrets: secrets)
end