Class Dister::Core
In: lib/dister/core.rb
Parent: Object

Core functionality

Methods

Constants

APP_ROOT = File.expand_path('.')   Absolute path to the root of the current application

Attributes

options  [R] 
shell  [R] 

Public Class methods

Connect to SUSE Studio and verify the user‘s credentials. Sets +@options+, +@shell+ and +@connection+ for further use.

Public Instance methods

Add a package to the appliance @param [String] package the name of the package

Add a list of packages at once @param [Array<String>] packages

Finds the appliance for the current app @return [StudioApi::Appliance] the app‘s appliance (or nil if none exist).

Find available base systems @return [Array<String>] a list of available base systems

Builds the appliance

@param [Hash] build_options @option build_options [Boolean] :force

Finds all builds @return [Array<StudioApi::Build>]

Creates a new appliance.

@param [String] name @param [String] template @param [String] basesystem @param [String] arch

@return [StudioApi::Appliance] the new appliance

@param [Array] build_set

Uploads a file identified by filename to a SuSE Studio Appliance

@param [String] filename name of file to upload @param [Hash] upload_options upload options (all parameters are optional) @option upload_options [String] filename The name of the file in the

  filesystem

@option upload_options [String] path The path where the file will be stored @option upload_options [String] owner The owner of the file @option upload_options [String] group The group of the file @option upload_options [String] permissions The permissions of the file @option upload_options [String] enabled Used to enable/disable this file

  for the builds

@option upload_options [String] url The url of the file to add from the

  internet (HTTP and FTP are supported) when using the web upload method

@return [Boolean] true if the file has been successfully uploaded

Asks Studio to mirror a repository. @return [StudioApi::Repository]

Creates a tarball that holds the application‘s source-files. Previously packaged versions get overwritten.

Creates all relevant config files (e.g. apache.conf) for the appliance.

Use bundler to download and package all required gems for the app.

Remove a package from the appliance @param [String] package the name of the package

@param [Array] build_set

Uploads the app tarball and the config file to the appliance.

Uploads our configuration scripts @return [true] if the scripts are successfully uploaded

Make sure the appliance doesn‘t have conflicts. In this case an error message is shown and the program halts.

[Validate]