Class: Wrapp::DMGBuilder
- Inherits:
-
Object
- Object
- Wrapp::DMGBuilder
- Defined in:
- lib/wrapp/dmg_builder.rb
Instance Attribute Summary collapse
-
#app_path ⇒ Object
readonly
Returns the value of attribute app_path.
Instance Method Summary collapse
- #create ⇒ Object
-
#initialize(app_path, opts = {}) ⇒ DMGBuilder
constructor
A new instance of DMGBuilder.
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_path ⇒ Object (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
#create ⇒ Object
10 11 12 |
# File 'lib/wrapp/dmg_builder.rb', line 10 def create system("hdiutil create '#{dmg_filename}' -srcfolder '#{source_path}'") end |