Sha256: b6524a78f6d8e5260b8b0f99bc368e53538da061d62f7dc495e5e6c94c5e2bd3

Contents?: true

Size: 1.63 KB

Versions: 7

Compression:

Stored size: 1.63 KB

Contents

# JBoss, Home of Professional Open Source
# Copyright 2009, Red Hat Middleware LLC, and individual contributors
# by the @authors tag. See the copyright.txt in the distribution for a
# full listing of individual contributors.
#
# This is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2.1 of
# the License, or (at your option) any later version.
#
# This software is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this software; if not, write to the Free
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
# 02110-1301 USA, or see the FSF site: http://www.fsf.org.

require 'boxgrinder-core/validators/errors'
require 'yaml'

module BoxGrinder
  class SSHConfig
    def initialize( config )
      @config   = config
      @cfg      = @config.data['ssh']
      @options  = {}

      # defaults
      @options['sftp_create_path']          = true
      @options['sftp_overwrite']            = false
      @options['sftp_default_permissions']  = 0644

      @options['host']                      = @config.release.ssh['host']
      @options['username']                  = @config.release.ssh['username']
      @options['password']                  = @config.release.ssh['password']
    end

    attr_reader :options
    attr_reader :cfg
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
boxgrinder-build-0.2.0 lib/boxgrinder-build/models/ssh-config.rb
boxgrinder-build-0.0.7 lib/boxgrinder-build/models/ssh-config.rb
boxgrinder-build-0.0.6 lib/boxgrinder-build/models/ssh-config.rb
boxgrinder-build-0.0.5 lib/boxgrinder-build/models/ssh-config.rb
boxgrinder-build-0.0.4 lib/boxgrinder-build/models/ssh-config.rb
boxgrinder-build-0.0.3 lib/boxgrinder-build/models/ssh-config.rb
boxgrinder-build-0.0.1 lib/boxgrinder-build/models/ssh-config.rb