Sha256: ba951e7ef2534c12718bbb50451c8d0e6e659a53d4e06bdfb086a06ab62684c1
Contents?: true
Size: 731 Bytes
Versions: 2
Compression:
Stored size: 731 Bytes
Contents
require 'hanzo/modules/installers/remotes' require 'hanzo/modules/installers/labs' module Hanzo class Install < Base # Mixins include Hanzo::Installers::Remotes include Hanzo::Installers::Labs protected def initialize_variables @type = extract_argument(1) end def initialize_cli initialize_help && 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hanzo-0.4.5 | lib/hanzo/modules/install.rb |
hanzo-0.4.4 | lib/hanzo/modules/install.rb |