Module: Rake
- Defined in:
- lib/rake/helpers/rake.rb,
lib/rake/delphi/rc.rb,
lib/rake/common/git.rb,
lib/rake/delphi/tool.rb,
lib/rake/delphi/dcc32.rb,
lib/rake/common/logger.rb,
lib/rake/common/classes.rb,
lib/rake/common/initask.rb,
lib/rake/common/ziptask.rb,
lib/rake/delphi/liblist.rb,
lib/rake/delphi/project.rb,
lib/rake/delphi/version.rb,
lib/rake/common/echotask.rb,
lib/rake/common/exectask.rb,
lib/rake/common/hashtask.rb,
lib/rake/common/libstask.rb,
lib/rake/common/chdirtask.rb,
lib/rake/delphi/resources.rb,
lib/rake/helpers/filelist.rb,
lib/rake/helpers/raketask.rb,
lib/rake/delphi/projectinfo.rb,
lib/rake/common/sendmailtask.rb,
lib/rake/delphi/envvariables.rb
Overview
extend Rake task with a logger
Defined Under Namespace
Modules: Delphi
Classes: FileList, Task
Class Method Summary
collapse
Class Method Details
.cygwin? ⇒ Boolean
31
32
33
|
# File 'lib/rake/helpers/rake.rb', line 31
def self.cygwin?
RUBY_PLATFORM.downcase.include?('cygwin')
end
|
.quotepath(switch, path) ⇒ Object
19
20
21
|
# File 'lib/rake/helpers/rake.rb', line 19
def self.quotepath(switch, path)
return ! path.to_s.empty? ? "#{switch}\"#{path.to_s}\"" : ''
end
|
.ruby18? ⇒ Boolean
27
28
29
|
# File 'lib/rake/helpers/rake.rb', line 27
def self.ruby18?
/^1\.8/.match(RUBY_VERSION)
end
|
.set_non_standard_vars ⇒ Object
6
7
8
9
10
11
12
13
14
15
16
17
|
# File 'lib/rake/helpers/rake.rb', line 6
def self.set_non_standard_vars
Rake.application.top_level_tasks.delete_if do |task|
if /^[^.=][^=]+=.*/.match(task)
name, value = task.split('=', 2)
ENV[name] = value
true
end
end
end
|
.unquotepath(path) ⇒ Object
23
24
25
|
# File 'lib/rake/helpers/rake.rb', line 23
def self.unquotepath(path)
return path.to_s.gsub(/^"|"$/, '')
end
|