Sha256: dec8617caa8b400c4eb3ea78f6f409172b6531a521541e2a9d62ba2d6339e66b
Contents?: true
Size: 550 Bytes
Versions: 1
Compression:
Stored size: 550 Bytes
Contents
module SimpleDeploy module CLI def self.attributes attrs = [] read_attributes.each do |attribs| key = attribs.split('=').first.gsub(/\s+/, "") value = attribs.gsub(/^.+?=/, '') @logger.info "Read #{key} : #{value}" attrs << { key => value } end attrs end def self.read_attributes @opts[:attributes].nil? ? [] : @opts[:attributes] end def self.environment_provided? @opts[:environment].nil? != true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_deploy-0.2.8 | lib/simple_deploy/cli/variables.rb |