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.



5
6
7
# File 'lib/soaring/packager.rb', line 5

def initialize(options)
  @options = options
end

Instance Method Details

#packageObject



9
10
11
12
13
14
15
16
17
18
# File 'lib/soaring/packager.rb', line 9

def package
  Dir.chdir(@options[:project_root]) do
    validate_project if not @options[:ignore_git_checks]
    build_output_location = generate_build_output_location(@options[:project_root])
    update_project_release_information
    `mkdir -p #{@options[:project_root]}/build`
    `zip -r --symlinks #{build_output_location} -@ < build-package-manifest`
    puts "Packaged build to #{build_output_location}"
  end
end