Sha256: da94de7338161ed053d6ea030e9352e8e66097d6bf75f055a9ad66c91884752c
Contents?: true
Size: 486 Bytes
Versions: 26
Compression:
Stored size: 486 Bytes
Contents
module Terraspace::Cloud class Vcs class << self @@name = nil def register(options={}) @@name = options[:name] end # IE: TerraspaceVcsGithub::Interface.new def detect(options) name = detect_name "TerraspaceVcs#{name.camelize}::Interface".constantize.new(options) if name end def detect_name # allow user to override vcs.name Terraspace.config.cloud.vcs.name || @@name end end end end
Version data entries
26 entries across 26 versions & 1 rubygems