Class: Dockly::Rpm

Inherits:
Deb
  • Object
show all
Defined in:
lib/dockly/rpm.rb

Instance Method Summary collapse

Methods inherited from Deb

#build, #build_path, #copy_from_s3, #create_package!, #exists?, #file, #s3_object_name, #s3_object_name_for, #s3_url, #upload_to_s3

Instance Method Details

#output_filenameObject



9
10
11
# File 'lib/dockly/rpm.rb', line 9

def output_filename
  "#{package_name}_#{version}.#{release}_#{arch}.rpm"
end

#startup_scriptObject



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