Class: Soaring::Packager

Inherits:
Object
  • Object
show all
Defined in:
lib/soaring/packager.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Packager

Returns a new instance of Packager.



3
4
5
# File 'lib/soaring/packager.rb', line 3

def initialize(options)
  @options = options
end

Instance Method Details

#package(project_folder) ⇒ Object



7
8
9
10
11
12
# File 'lib/soaring/packager.rb', line 7

def package(project_folder)
  validate_project
  build_output_location = generate_build_output_location
  `zip -r #{build_output_location} * .ebextensions -x build -x config/environment.yml`
  puts "Build packaged at #{build_output_location}"
end