Sha256: d33aab0435c5163170f6fc7bb7a11310a635d2d4e2e4e9411d8d153af236e82b

Contents?: true

Size: 600 Bytes

Versions: 8

Compression:

Stored size: 600 Bytes

Contents

module Jack
  module EbConfig
    class Create < Base
      attr_reader :eb_config_path
      def initialize(options={})
        super
        @app_name = options[:app] || app_name_convention(@env_name)
      end

      def platform
        CreateYaml.new.data['platform'] || latest_docker_platform
      end

      def app_name
        @app_name
      end

      def latest_docker_platform
        solution_stacks.grep(/Docker/).reject {|x| x =~ /Preconfigured/}.sort.last
      end
   
      def solution_stacks
        eb.list_available_solution_stacks.solution_stacks
      end

    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
jack-eb-0.1.2 lib/jack/eb_config/create.rb
jack-eb-0.1.1 lib/jack/eb_config/create.rb
jack-eb-0.1.0 lib/jack/eb_config/create.rb
jack-eb-0.0.9 lib/jack/eb_config/create.rb
jack-eb-0.0.8 lib/jack/eb_config/create.rb
jack-eb-0.0.7 lib/jack/eb_config/create.rb
jack-eb-0.0.6 lib/jack/eb_config/create.rb
jack-eb-0.0.4 lib/jack/eb_config/create.rb