lib/omnibus/packagers/base.rb in omnibus-4.0.0.beta.1 vs lib/omnibus/packagers/base.rb in omnibus-4.0.0.rc.1

- old
+ new

@@ -104,10 +104,34 @@ **/.gitkeep ) end # + # @!group DSL methods + # -------------------------------------------------- + + # + # Retrieve the path at which the project will be installed by the + # generated package. + # + # @return [String] + # + def install_dir + project.install_dir + end + expose :install_dir + + # + # (see Util#windows_safe_path) + # + expose :windows_safe_path + + # + # @!endgroup + # -------------------------------------------------- + + # # Execute this packager by running the following phases in order: # # - setup # - build # @@ -147,10 +171,10 @@ # The path to the staging dir on disk. # # @return [String] # def staging_dir - @staging_dir ||= Dir.mktmpdir(project.name) + @staging_dir ||= Dir.mktmpdir(project.package_name) end # # @!group Resource methods # --------------------------------------------------