Sha256: d4a0a5b4b617dec1662620647f7a43f1c1d166f5c9d3565e9ffd14641e4f9ac3

Contents?: true

Size: 527 Bytes

Versions: 12

Compression:

Stored size: 527 Bytes

Contents

module Librarian
  module Puppet
    module Action
      class Install < Librarian::Action::Install

        private

        def create_install_path
          install_path.rmtree if install_path.exist? && destructive?
          install_path.mkpath
        end

        def destructive?
          environment.config_db.local['destructive'] == 'true'
        end

        def check_specfile
          # don't fail if Puppetfile doesn't exist as we'll use the Modulefile or metadata.json
        end

      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
librarian-puppet-1.5.0 lib/librarian/puppet/action/install.rb
librarian-puppet-2.1.0 lib/librarian/puppet/action/install.rb
librarian-puppet-1.4.1 lib/librarian/puppet/action/install.rb
librarian-puppet-2.0.1 lib/librarian/puppet/action/install.rb
librarian-puppet-1.4.0 lib/librarian/puppet/action/install.rb
librarian-puppet-2.0.0 lib/librarian/puppet/action/install.rb
librarian-puppet-1.0.9 lib/librarian/puppet/action/install.rb
librarian-puppet-1.3.2 lib/librarian/puppet/action/install.rb
librarian-puppet-1.0.8 lib/librarian/puppet/action/install.rb
librarian-puppet-1.3.1 lib/librarian/puppet/action/install.rb
librarian-puppet-1.0.7 lib/librarian/puppet/action/install.rb
librarian-puppet-1.3.0 lib/librarian/puppet/action/install.rb