Module: IronHammer::DefaultBinariesBehavior

Included in:
Projects::DllProject
Defined in:
lib/iron_hammer/default_binaries_behavior.rb

Constant Summary collapse

BIN_PATTERN =
'*.{dll,exe}'

Instance Method Summary collapse

Instance Method Details

#binaries(params = {}) ⇒ Object



7
8
9
10
11
12
13
14
15
16
# File 'lib/iron_hammer/default_binaries_behavior.rb', line 7

def binaries params={}
  path = path_to_binaries(params)
  Dir[File.join(path, BIN_PATTERN)].collect do |file|
    IronHammer::Deliverables::Deliverable.new(
      :path_on_package => '',
      :actual_path => path,
      :actual_name => file.split('/').last
    )
  end
end

#binary_typesObject



18
19
20
# File 'lib/iron_hammer/default_binaries_behavior.rb', line 18

def binary_types
  ['dll', 'exe']
end