Sha256: b89706104bb67cacd262c30e063d24129629d8c13fd089ee99449ccbfbc7a75e

Contents?: true

Size: 888 Bytes

Versions: 1

Compression:

Stored size: 888 Bytes

Contents

require "vagrant/action/builder"

module VagrantPlugins
  module Omnibus
    module Action
      autoload :InstallChef, File.expand_path("../action/install_chef", __FILE__)
      autoload :IsRunning, File.expand_path("../action/is_running", __FILE__)
      autoload :ReadChefVersion, File.expand_path("../action/read_chef_version", __FILE__)

      # Include the built-in modules so that we can use them as top-level
      # things.
      include Vagrant::Action::Builtin

      # @return [::Vagrant::Action::Builder]
      def self.install_chef
        @install_chef ||= ::Vagrant::Action::Builder.new.tap do |b|
          b.use ConfigValidate
          b.use Call, IsRunning do |env1, b2|
            if env1[:result]
              b2.use ReadChefVersion
              b2.use InstallChef
              b2.use SSHRun
            end
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-omnibus-1.0.0 lib/vagrant-omnibus/action.rb