lib/dockly/deb.rb in dockly-1.10.0 vs lib/dockly/deb.rb in dockly-1.11.0

- old
+ new

@@ -5,11 +5,12 @@ include Dockly::Util::Logger::Mixin logger_prefix '[dockly deb]' dsl_attribute :package_name, :version, :release, :arch, :build_dir, :deb_build_dir, :pre_install, :post_install, :pre_uninstall, - :post_uninstall, :s3_bucket, :files, :app_user, :vendor + :post_uninstall, :s3_bucket, :files, :app_user, :vendor, + :package_startup_script dsl_class_attribute :docker, Dockly::Docker dsl_class_attribute :foreman, Dockly::Foreman, type: Array default_value :version, '0.0' @@ -18,10 +19,11 @@ default_value :build_dir, 'build' default_value :deb_build_dir, 'deb' default_value :files, [] default_value :app_user, 'nobody' default_value :vendor, 'Dockly' + default_value :package_startup_script, true def file(source, destination) @files << { :source => source, :destination => destination } end @@ -100,10 +102,10 @@ @dir_package = FPM::Package::Dir.new add_foreman(@dir_package) add_files(@dir_package) add_docker_auth_config(@dir_package) add_docker(@dir_package) - add_startup_script(@dir_package) + add_startup_script(@dir_package) if package_startup_script convert_package @deb_package.scripts[:before_install] = pre_install @deb_package.scripts[:after_install] = post_install