Sha256: 636b1cbb9c5bc03c072cd2fcb328af2e30b7f4ff302c899103de5c896c7d932c
Contents?: true
Size: 884 Bytes
Versions: 1
Compression:
Stored size: 884 Bytes
Contents
require "yaml" module Jack class Create include Util def initialize(options={}) @options = options @root = options[:root] || '.' @env_name = options[:env_name] @app_name = options[:app] || app_name_convention(@env_name) end def run EbConfig::Create.new(@options).sync unless @options[:noop] create_env end def create_env command = build_command do_cmd(command, @options) end def build_command @cfg = upload_cfg flags = CreateYaml.new.flags "eb create --nohang #{flags} #{@cfg}#{cname}#{@env_name}" end def upload_cfg @upload = Config::Upload.new(@options.merge(skip_sync: true)) if @upload.local_cfg_exist? @upload.upload cfg = "--cfg #{@upload.upload_name} " end end def cname "--cname #{@env_name} " end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jack-eb-0.0.4 | lib/jack/create.rb |