Class: Tara::Installer

Inherits:
Object
  • Object
show all
Defined in:
lib/tara/installer.rb

Instance Method Summary collapse

Constructor Details

#initialize(package_dir, fetcher, options = {}) ⇒ Installer

Returns a new instance of Installer.



6
7
8
9
10
11
12
13
14
# File 'lib/tara/installer.rb', line 6

def initialize(package_dir, fetcher, options={})
  @package_dir = package_dir
  @fetcher = fetcher
  @without_groups = options[:without_groups]
  @app_dir = Pathname.new(options[:app_dir])
  @bundle_env = bundle_env(options[:bundle_ignore_config])
  @shell = options[:shell] || Shell
  @build_command = options[:build_command]
end

Instance Method Details

#executeObject



16
17
18
19
20
21
22
23
24
25
26
# File 'lib/tara/installer.rb', line 16

def execute
  bundle_gems
  extract_ruby
  extract_native_gems
  strip_tests
  strip_docs
  strip_leftovers
  strip_java_files
  strip_git_files
  strip_empty_directories
end