class Jack::EbConfig::Create

Attributes

eb_config_path[R]

Public Class Methods

new(options={}) click to toggle source
Calls superclass method Jack::EbConfig::Base::new
# File lib/jack/eb_config/create.rb, line 5
def initialize(options={})
  super
  @app_name = options[:app] || app_name_convention(@env_name)
end

Public Instance Methods

app_name() click to toggle source
# File lib/jack/eb_config/create.rb, line 17
def app_name
  @app_name
end
latest_docker_platform() click to toggle source
# File lib/jack/eb_config/create.rb, line 21
def latest_docker_platform
  solution_stacks.grep(/Docker/).
                  reject {|x| x =~ /Preconfigured/}.
                  reject {|x| x =~ /Multi-container/}.
                  sort.last
end
platform() click to toggle source
# File lib/jack/eb_config/create.rb, line 10
def platform
  # TODO: change so that the gem default settins has nil for platform
  # but need to provide a deprecation warning first.
  # Right now it will never hit the lastest_docker_platform logic
  settings.create['platform'] || latest_docker_platform
end
solution_stacks() click to toggle source
# File lib/jack/eb_config/create.rb, line 28
def solution_stacks
  eb.list_available_solution_stacks.solution_stacks
end