Class: Wrapp::DMGBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/wrapp/dmg_builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app_path, opts = {}) ⇒ DMGBuilder

Returns a new instance of DMGBuilder.



5
6
7
8
# File 'lib/wrapp/dmg_builder.rb', line 5

def initialize(app_path, opts = {})
  @app_path = app_path
  @opts = opts
end

Instance Attribute Details

#app_pathObject (readonly)

Returns the value of attribute app_path.



3
4
5
# File 'lib/wrapp/dmg_builder.rb', line 3

def app_path
  @app_path
end

Instance Method Details

#createObject



10
11
12
# File 'lib/wrapp/dmg_builder.rb', line 10

def create
  system("hdiutil create '#{dmg_filename}' -srcfolder '#{source_path}'")
end