class OhlohScm::Core
Attributes
Public Class Methods
Source
# File lib/ohloh_scm/core.rb, line 11 def initialize(scm_type, url, branch_name, username, password) scm_opts = { core: self, url: url, branch_name: branch_name, username: username, password: password } scm_class_name = scm_type.to_s.camelize @scm = OhlohScm.const_get(scm_class_name)::Scm.new(scm_opts) @activity = OhlohScm.const_get(scm_class_name)::Activity.new(self) @status = OhlohScm.const_get(scm_class_name)::Status.new(self) @validation = OhlohScm.const_get(scm_class_name)::Validation.new(self) end