Class: Dockly::Rpm
- Inherits:
-
Deb
- Object
- Deb
- Dockly::Rpm
- Defined in:
- lib/dockly/rpm.rb
Instance Method Summary collapse
Instance Method Details
#output_filename ⇒ Object
9 10 11 |
# File 'lib/dockly/rpm.rb', line 9 def output_filename "#{package_name}_#{version}.#{release}_#{arch}.rpm" end |
#startup_script ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/dockly/rpm.rb', line 13 def startup_script scripts = [] bb = Dockly::BashBuilder.new scripts << bb.normalize_for_dockly scripts << bb.get_and_install_rpm(s3_url, "/opt/dockly/#{File.basename(s3_url)}") scripts.join("\n") end |