Module: RhoPackages
- Defined in:
- lib/build/rho_packages.rb
Defined Under Namespace
Classes: FileRepo, HttpRepo, NilConfig, NilRepo, Repo, YmlConfig
Constant Summary
collapse
- @@config =
NilConfig.new
- @@repo =
NilRepo.new
Class Method Summary
collapse
Class Method Details
.request(*package_names) ⇒ Object
190
191
192
193
194
|
# File 'lib/build/rho_packages.rb', line 190
def self.request(*package_names)
package_names.each do |package_name|
self.request_(@@config.package_deps(package_name))
end
end
|
.set_root(root_dir) ⇒ Object
177
178
179
180
181
182
183
184
185
186
187
188
|
# File 'lib/build/rho_packages.rb', line 177
def self.set_root(root_dir)
@@config = YmlConfig.new(File.join(root_dir, 'config.yml'))
repo_path = @@config.repository
if repo_path.nil?
@@repo = NilRepo.new
elsif repo_path.start_with?('http://') or repo_path.start_with?('https://')
@@repo = HttpRepo.new(root_dir, repo_path)
else
@@repo = FileRepo.new(root_dir, repo_path)
end
end
|