Sha256: 1bf738a14249e74b97047724d29cd6f6c2e39a30975b5fc2ada3d43204f2d4e9

Contents?: true

Size: 808 Bytes

Versions: 1

Compression:

Stored size: 808 Bytes

Contents

require 'vagrant-berkshelf/action/base'

module VagrantPlugins
  module Berkshelf
    module Action
      require 'vagrant-opsworks/action'
      include VagrantPlugins::OpsWorks::Action

      class Base
        class << self
          alias_method :old_setup, :setup
        end

        def self.setup
          Vagrant::Action::Builder.new.tap do |b|
            b.use old_setup
            b.use ::Vagrant::Action::Builtin::EnvSet, opsworks: VagrantPlugins::OpsWorks::Env.new
            b.use VagrantPlugins::OpsWorks::Action::SetupEnvironment
            b.use VagrantPlugins::OpsWorks::Action::CheckoutCookbooks
            b.use VagrantPlugins::OpsWorks::Action::MergeCookbooks
            b.use VagrantPlugins::OpsWorks::Action::ConfigureChef
          end
        end
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-opsworks-0.3.1 lib/berkshelf-monkey-patch.rb