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

Version Path
simple_deploy-0.3.7 lib/simple_deploy/cli/variables.rb
simple_deploy-0.3.6 lib/simple_deploy/cli/variables.rb
simple_deploy-0.3.5 lib/simple_deploy/cli/variables.rb
simple_deploy-0.3.4 lib/simple_deploy/cli/variables.rb
simple_deploy-0.3.3 lib/simple_deploy/cli/variables.rb
simple_deploy-0.3.2 lib/simple_deploy/cli/variables.rb
simple_deploy-0.3.1 lib/simple_deploy/cli/variables.rb
simple_deploy-0.3.0 lib/simple_deploy/cli/variables.rb