Sha256: eb4610626c3a099dbb3143f1967c3f71e3616631a4f5081e7b1c476e3fb33a5f
Contents?: true
Size: 732 Bytes
Versions: 9
Compression:
Stored size: 732 Bytes
Contents
require 'fileutils' require 'yaml' module Jack module Config 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
9 entries across 9 versions & 1 rubygems