Class: Packager::Ruby

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

Instance Method Summary collapse

Constructor Details

#initialize(source_dir, destination_dir, include_pattern_string, exclude_pattern_string) ⇒ Ruby

Returns a new instance of Ruby.



2
3
4
5
6
7
# File 'lib/packager/ruby.rb', line 2

def initialize(source_dir, destination_dir, include_pattern_string, exclude_pattern_string)
  @source_dir = Pathname.new(source_dir)
  @destination_dir = Pathname.new(destination_dir)
  @include_pattern_string = include_pattern_string
  @exclude_pattern_string = exclude_pattern_string
end

Instance Method Details

#packageObject



9
10
11
12
13
14
# File 'lib/packager/ruby.rb', line 9

def package
  assert_at_least_one_processor!
  create_destination_dir
  copy_deployment_management_files
  package_processors
end