Class: Albacore::FpmAppSpec::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/albacore/fpm_app_spec.rb

Instance Method Summary collapse

Constructor Details

#initializeConfig

create a new configuration for multiple xxproj-s to be packed with fpm into .deb/.rpm



67
68
69
70
71
# File 'lib/albacore/fpm_app_spec.rb', line 67

def initialize
  @bundler = true
  @files   = []
  @out     = '.'
end

Instance Method Details

#files=(files) ⇒ Object

give the configuration a list of files to match



84
85
86
# File 'lib/albacore/fpm_app_spec.rb', line 84

def files= files
  @files = files
end

#no_bundlerObject

turn off the using of bundler; bundler will be used by default



74
75
76
# File 'lib/albacore/fpm_app_spec.rb', line 74

def no_bundler
  @bundler = false
end

#optsObject



88
89
90
91
92
# File 'lib/albacore/fpm_app_spec.rb', line 88

def opts
  Map.new bundler: @bundler,
          files: @files,
          out: @out
end

#out=(out) ⇒ Object

set the output path, defaults to ‘.’



79
80
81
# File 'lib/albacore/fpm_app_spec.rb', line 79

def out= out
  @out = out
end