Sha256: 82e8fef7371eb5161734b884c1490d2622c4ac7c1a7073524ec9e7667d9cd944
Contents?: true
Size: 742 Bytes
Versions: 13
Compression:
Stored size: 742 Bytes
Contents
require 'fileutils' require 'yaml' module Jack class Config < Command class Transmit include Util attr_reader :local_config_path def initialize(options={}) @options = options @root = options[:root] || '.' @env_name = options[:env_name] @app_name = @options[:app] || app_name_convention(@env_name) @saved_configs = "#{@root}/.elasticbeanstalk/saved_configs" local_config_name = options[:cfg] || @env_name @local_config_path = "jack/cfg/#{local_config_name}.cfg.yml" end def timestamp Time.now.strftime "%Y-%m-%d_%H-%M-%S" end def extract_name(path) path.split('/').last.sub('.cfg.yml','') end end end end
Version data entries
13 entries across 13 versions & 1 rubygems