billymeltdown-choctop 0.11.0 → 0.11.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/choctop.rb +6 -1
  2. data/lib/choctop/dmg.rb +1 -0
  3. metadata +1 -1
data/lib/choctop.rb CHANGED
@@ -38,7 +38,7 @@ class ChocTop
38
38
  end
39
39
 
40
40
  def target_bundle
41
- @target_bundle ||= Dir["build/#{build_type}/#{name}.*"].first
41
+ @target_bundle ||= Dir["#{build_products}/#{name}.*"].first
42
42
  end
43
43
 
44
44
  # The build type of the distributed DMG file
@@ -103,6 +103,11 @@ class ChocTop
103
103
  # Additional arguments to pass to scp
104
104
  # e.g. -P 11222
105
105
  attr_accessor :scp_args
106
+
107
+ attr_accessor :build_products
108
+ def build_products
109
+ @build_products ||= "build/#{build_type}"
110
+ end
106
111
 
107
112
  # Folder from where all files will be copied into the DMG
108
113
  # Files are copied here if specified with +add_file+ before DMG creation
data/lib/choctop/dmg.rb CHANGED
@@ -16,6 +16,7 @@ module ChocTop::Dmg
16
16
  end
17
17
 
18
18
  def copy_files
19
+ FileUtils.rm_rf(src_folder)
19
20
  FileUtils.mkdir_p(src_folder)
20
21
  files.each do |path, options|
21
22
  FileUtils.cp_r(path, src_folder)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: billymeltdown-choctop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dr Nic Williams