Class: Aws::RailsProvisioner::Fargate
- Inherits:
-
Object
- Object
- Aws::RailsProvisioner::Fargate
- Defined in:
- lib/aws-rails-provisioner/fargate.rb
Instance Attribute Summary collapse
- #certificate ⇒ String readonly
- #container_name ⇒ String readonly
- #container_port ⇒ Integer readonly
- #cpu ⇒ Integer readonly
- #desired_count ⇒ Integer readonly
- #domain_name ⇒ String readonly
- #domain_zone ⇒ String readonly
- #envs ⇒ Array readonly
- #memory ⇒ Integer readonly
- #public ⇒ Boolean readonly
- #service_name ⇒ String readonly
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Fargate
constructor
Configuration value under :fargate.
Constructor Details
#initialize(options = {}) ⇒ Fargate
Configuration value under :fargate
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/aws-rails-provisioner/fargate.rb', line 37 def initialize( = {}) # code gen only @has_db = !![:has_db] @service_name = [:service_name] @desired_count = [:desired_count] || 2 @public = !![:public] @domain_name = [:domain_name] @domain_zone = [:domain_zone] @certificate = [:certificate] @memory = [:memory] || 512 @cpu = [:cpu] || 256 @envs = Aws::RailsProvisioner::Utils.to_pairs([:envs]) if [:envs] @container_port = [:container_port] || 80 @container_name = [:container_name] || 'FargateTaskContainer' end |
Instance Attribute Details
#certificate ⇒ String (readonly)
75 76 77 |
# File 'lib/aws-rails-provisioner/fargate.rb', line 75 def certificate @certificate end |
#container_name ⇒ String (readonly)
90 91 92 |
# File 'lib/aws-rails-provisioner/fargate.rb', line 90 def container_name @container_name end |
#container_port ⇒ Integer (readonly)
87 88 89 |
# File 'lib/aws-rails-provisioner/fargate.rb', line 87 def container_port @container_port end |
#cpu ⇒ Integer (readonly)
84 85 86 |
# File 'lib/aws-rails-provisioner/fargate.rb', line 84 def cpu @cpu end |
#desired_count ⇒ Integer (readonly)
60 61 62 |
# File 'lib/aws-rails-provisioner/fargate.rb', line 60 def desired_count @desired_count end |
#domain_name ⇒ String (readonly)
69 70 71 |
# File 'lib/aws-rails-provisioner/fargate.rb', line 69 def domain_name @domain_name end |
#domain_zone ⇒ String (readonly)
72 73 74 |
# File 'lib/aws-rails-provisioner/fargate.rb', line 72 def domain_zone @domain_zone end |
#envs ⇒ Array (readonly)
78 79 80 |
# File 'lib/aws-rails-provisioner/fargate.rb', line 78 def envs @envs end |
#memory ⇒ Integer (readonly)
81 82 83 |
# File 'lib/aws-rails-provisioner/fargate.rb', line 81 def memory @memory end |
#public ⇒ Boolean (readonly)
66 67 68 |
# File 'lib/aws-rails-provisioner/fargate.rb', line 66 def public @public end |
#service_name ⇒ String (readonly)
63 64 65 |
# File 'lib/aws-rails-provisioner/fargate.rb', line 63 def service_name @service_name end |