Sha256: a6af41d046a782d5178d5a0563a4bb9338b7b5d801f9f048579bbca4be0e7bb4

Contents?: true

Size: 857 Bytes

Versions: 15

Compression:

Stored size: 857 Bytes

Contents

require 'active_support/json'
require 'securerandom'

module Runcible
  module Models
    class DebDistributor < Distributor
      #required attributes
      attr_accessor 'relative_url', 'http', 'https'
      #optional attributes
      attr_accessor 'auth_cert', 'auth_ca',
                    'https_ca', 'gpgkey', 'generate_metadata',
                    'checksum_type', 'skip', 'https_publish_dir', 'http_publish_dir',
                    'publish_default_release'

      def initialize(relative_url, http, https, params = {})
        @relative_url = relative_url
        @http = http
        @https = https
        super(params)
      end

      def self.type_id
        'deb_distributor'
      end

      def config
        to_ret = as_json
        to_ret.delete('auto_publish')
        to_ret.delete('id')
        to_ret
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
runcible-2.13.1 lib/runcible/models/deb_distributor.rb
runcible-2.13.0 lib/runcible/models/deb_distributor.rb
runcible-2.12.1 lib/runcible/models/deb_distributor.rb
runcible-2.12.0 lib/runcible/models/deb_distributor.rb
runcible-2.11.1 lib/runcible/models/deb_distributor.rb
runcible-2.11.0 lib/runcible/models/deb_distributor.rb
runcible-2.10.1 lib/runcible/models/deb_distributor.rb
runcible-2.10.0 lib/runcible/models/deb_distributor.rb
runcible-2.9.0 lib/runcible/models/deb_distributor.rb
runcible-2.8.1 lib/runcible/models/deb_distributor.rb
runcible-2.8.0 lib/runcible/models/deb_distributor.rb
runcible-2.7.0 lib/runcible/models/deb_distributor.rb
runcible-2.6.0 lib/runcible/models/deb_distributor.rb
runcible-2.5.0 lib/runcible/models/deb_distributor.rb
runcible-2.4.0 lib/runcible/models/deb_distributor.rb