219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
|
# File 'lib/isono/resource_manifest.rb', line 219
def rake(task, rakefile=nil, &blk)
rake_path = manifest.helpers[:rake_bin_path] || Gem.bin_path('rake', 'rake')
rakefile = if rakefile
rakefile
elsif manifest.helpers[:default_rakefile]
manifest.helpers[:default_rakefile]
else
raise "Rakefile is not specified."
end
cmd = Util.quote_args("%s -I%s -f %s --rakelib %s RESOURCE_MANIFEST=%s %s",
[rake_path,
File.join(Isono.home, 'lib'),
rakefile,
File.join(Isono.home, 'tasks'),
File.expand_path('resource.manifest', manifest.resource_root_path),
task
])
logger.debug(cmd)
system(cmd)
end
|