Sha256: 36d7348d2b2dfcf9804320af93ae34e5c9d34cb13b7a55c50ec6c4234dc99feb
Contents?: true
Size: 788 Bytes
Versions: 4
Compression:
Stored size: 788 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 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 labs - Enable specific labs for all environments BANNER end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
hanzo-1.1.0 | lib/hanzo/modules/install.rb |
hanzo-1.0.2 | lib/hanzo/modules/install.rb |
hanzo-1.0.1 | lib/hanzo/modules/install.rb |
hanzo-1.0.0 | lib/hanzo/modules/install.rb |