Sha256: 5dd137f8113e424ec8dc01758c2462b48619ecb5f0c4c33d0278cbd218dca929
Contents?: true
Size: 581 Bytes
Versions: 3
Compression:
Stored size: 581 Bytes
Contents
module SimpleDeploy module CLI def self.attributes attrs = [] puts "Read the following attributes:" read_attributes.each do |attribs| key = attribs.split('=').first.gsub(/\s+/, "") value = attribs.gsub(/^.+?=/, '') puts "#{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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
simple_deploy-0.2.6 | lib/simple_deploy/cli/variables.rb |
simple_deploy-0.2.5 | lib/simple_deploy/cli/variables.rb |
simple_deploy-0.2.4 | lib/simple_deploy/cli/variables.rb |