Sha256: 66b2afda78f820bfc526e845330a59710cbc212ece5b81fd635bed0f0cbe48cc

Contents?: true

Size: 327 Bytes

Versions: 11

Compression:

Stored size: 327 Bytes

Contents

# Set up the PE build cache dir
class PEBuild::Action::PEBuildDir

  def initialize(app, env)
    @app, @env = app, env

    @build_dir = @env[:home_path].join('pe_builds')
  end

  def call(env)
    @env = env

    @build_dir.mkpath unless @build_dir.exist?
    @env[:pe_build_dir] = @build_dir

    @app.call(@env)
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
vagrant-pe_build-0.8.1 lib/pe_build/action/pe_build_dir.rb
vagrant-pe_build-0.8.0 lib/pe_build/action/pe_build_dir.rb
vagrant-pe_build-0.7.1 lib/pe_build/action/pe_build_dir.rb
vagrant-pe_build-0.7.0 lib/pe_build/action/pe_build_dir.rb
vagrant-pe_build-0.6.0 lib/pe_build/action/pe_build_dir.rb
vagrant-pe_build-0.5.0 lib/pe_build/action/pe_build_dir.rb
vagrant-pe_build-0.4.3 lib/pe_build/action/pe_build_dir.rb
vagrant-pe_build-0.4.2 lib/pe_build/action/pe_build_dir.rb
vagrant-pe_build-0.4.1 lib/pe_build/action/pe_build_dir.rb
vagrant-pe_build-0.4.0 lib/pe_build/action/pe_build_dir.rb
vagrant-pe_build-0.3.0 lib/pe_build/action/pe_build_dir.rb