Module: Bunchr
- Includes:
- Rake::DSL
- Defined in:
- lib/bunchr.rb,
lib/bunchr/ohai.rb,
lib/bunchr/utils.rb,
lib/bunchr/logger.rb,
lib/bunchr/version.rb,
lib/bunchr/packages.rb,
lib/bunchr/software.rb
Defined Under Namespace
Modules: Utils
Classes: Logger, Ohai, Packages, Software
Constant Summary
collapse
- VERSION =
'0.1.8'
- @@build_dir =
global module variables that must be set ay a Bunchr project and will be used by Bunchr::Software and ::Packages tasks.
nil
- @@install_dir =
nil
Class Method Summary
collapse
Class Method Details
.build_dir ⇒ Object
27
28
29
30
31
32
|
# File 'lib/bunchr.rb', line 27
def build_dir
if @@build_dir.nil?
raise "You must set `Bunchr.build_dir = '/path'` in your Rakefile."
end
@@build_dir
end
|
.build_dir=(dir) ⇒ Object
34
35
36
|
# File 'lib/bunchr.rb', line 34
def build_dir=(dir)
@@build_dir = dir
end
|
.install_dir ⇒ Object
16
17
18
19
20
21
|
# File 'lib/bunchr.rb', line 16
def install_dir
if @@install_dir.nil?
raise "You must set `Bunchr.install_dir = '/path'` in your Rakefile."
end
@@install_dir
end
|
.install_dir=(dir) ⇒ Object
23
24
25
|
# File 'lib/bunchr.rb', line 23
def install_dir=(dir)
@@install_dir = dir
end
|
.load_recipes(*files) ⇒ Object
simple wrapper around Rake’s import() method for loading .rake files
39
40
41
|
# File 'lib/bunchr.rb', line 39
def load_recipes(*files)
files.flatten.each { |f| import f }
end
|