Sha256: d8947f1c0894903a613c19c4155fdd9e69bf17d59c1c7685d474f34fc08771ea

Contents?: true

Size: 689 Bytes

Versions: 31

Compression:

Stored size: 689 Bytes

Contents

require 'active_support/json'
require 'securerandom'

module Runcible
  module Models
    class PuppetDistributor < Distributor
      attr_accessor 'serve_http', 'serve_https', 'http_dir', 'https_dir', 'absolute_path'

      def initialize(absolute_path, http, https, params = {})
        @absolute_path = absolute_path
        @serve_http = http
        @serve_https = https
        super(params)
      end

      def self.type_id
        'puppet_distributor'
      end

      def config
        to_ret = self.as_json
        to_ret.delete('absolute_path') if absolute_path.nil?
        to_ret.delete('auto_publish')
        to_ret.delete('id')
        to_ret
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
runcible-2.13.1 lib/runcible/models/puppet_distributor.rb
runcible-2.13.0 lib/runcible/models/puppet_distributor.rb
runcible-2.12.1 lib/runcible/models/puppet_distributor.rb
runcible-2.12.0 lib/runcible/models/puppet_distributor.rb
runcible-2.11.1 lib/runcible/models/puppet_distributor.rb
runcible-2.11.0 lib/runcible/models/puppet_distributor.rb
runcible-2.10.1 lib/runcible/models/puppet_distributor.rb
runcible-2.10.0 lib/runcible/models/puppet_distributor.rb
runcible-2.9.0 lib/runcible/models/puppet_distributor.rb
runcible-2.8.1 lib/runcible/models/puppet_distributor.rb
runcible-2.8.0 lib/runcible/models/puppet_distributor.rb
runcible-2.7.0 lib/runcible/models/puppet_distributor.rb
runcible-2.6.0 lib/runcible/models/puppet_distributor.rb
runcible-2.5.0 lib/runcible/models/puppet_distributor.rb
runcible-2.4.0 lib/runcible/models/puppet_distributor.rb
runcible-2.3.0 lib/runcible/models/puppet_distributor.rb
runcible-2.2.0 lib/runcible/models/puppet_distributor.rb
runcible-1.12.0 lib/runcible/models/puppet_distributor.rb
runcible-2.1.0 lib/runcible/models/puppet_distributor.rb
runcible-2.0.1 lib/runcible/models/puppet_distributor.rb