Class: Soaring::Packager
- Inherits:
-
Object
- Object
- Soaring::Packager
- Defined in:
- lib/soaring/packager.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ Packager
constructor
A new instance of Packager.
- #package ⇒ Object
Constructor Details
#initialize(options) ⇒ Packager
Returns a new instance of Packager.
5 6 7 |
# File 'lib/soaring/packager.rb', line 5 def initialize() @options = end |
Instance Method Details
#package ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/soaring/packager.rb', line 9 def package validate_project if not @options[:ignore_git_checks] build_output_location = generate_build_output_location(@options[:project_root]) update_project_commit_hash `mkdir -p #{@options[:project_root]}/build` `cd #{@options[:project_root]}; zip -r #{build_output_location} * .ebextensions --exclude=build/* --exclude=config/environment.yml` puts "Build packaged at #{build_output_location}" end |