Sha256: b08e21c757aade24f9b4a4c41a351701a576745518ebcb38b427b3c0efcf3f71

Contents?: true

Size: 1.28 KB

Versions: 11

Compression:

Stored size: 1.28 KB

Contents

# frozen_string_literal: true
# Copyright 2016 Liqwyd Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Top level module for the core Cyclid code.
module Cyclid
  # Module for the Cyclid API
  module API
    # Module for Cyclid Plugins
    module Plugins
      # Base class for Provisioner plugins
      class Provisioner < Base
        # Return the 'human' name for the plugin type
        def self.human_name
          'provisioner'
        end

        # Process the environment, performing all of the steps necasary to
        # configure the host according to the given environment; this can
        # include adding repositories, installing packages etc.
        def prepare(_transport, _buildhost, _env = {})
          false
        end
      end
    end
  end
end

require_rel 'provisioner/*.rb'

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
cyclid-0.4.0 app/cyclid/plugins/provisioner.rb
cyclid-0.3.3 app/cyclid/plugins/provisioner.rb
cyclid-0.3.2 app/cyclid/plugins/provisioner.rb
cyclid-0.3.1 app/cyclid/plugins/provisioner.rb
cyclid-0.3.0 app/cyclid/plugins/provisioner.rb
cyclid-0.2.5 app/cyclid/plugins/provisioner.rb
cyclid-0.2.4 app/cyclid/plugins/provisioner.rb
cyclid-0.2.3 app/cyclid/plugins/provisioner.rb
cyclid-0.2.2 app/cyclid/plugins/provisioner.rb
cyclid-0.2.1 app/cyclid/plugins/provisioner.rb
cyclid-0.2.0 app/cyclid/plugins/provisioner.rb