Sha256: fc9687e4a728b7467c3083f62654cf4ce2b395972c9c4fc1396842c891345aa1
Contents?: true
Size: 719 Bytes
Versions: 5
Compression:
Stored size: 719 Bytes
Contents
require 'hanzo/modules/installers/remotes' require 'hanzo/modules/installers/labs' module Hanzo class Install < Base include Hanzo::Installers::Remotes include Hanzo::Installers::Labs protected def initialize_variables @type = extract_argument(1) end def initialize_cli initialize_help and return if @type.nil? method = "install_#{@type}" if self.respond_to?(method) send(method) else initialize_help end end def initialize_help @options.banner = <<-BANNER.unindent Usage: hanzo install TYPE Available install type: remotes - Add git remotes to current repository BANNER end end end
Version data entries
5 entries across 5 versions & 1 rubygems