Sha256: a65eb0734b5fb558b59ce2ede447ae4238e4cab5d4b47bf281dd3d48043b5148
Contents?: true
Size: 548 Bytes
Versions: 8
Compression:
Stored size: 548 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
8 entries across 8 versions & 1 rubygems