class Hanzo::Install
Protected Instance Methods
initialize_cli()
click to toggle source
# File lib/hanzo/modules/install.rb, line 16 def initialize_cli initialize_help && return if @type.nil? method = "install_#{@type}" if respond_to?(method) send(method) else initialize_help end end
initialize_help()
click to toggle source
# File lib/hanzo/modules/install.rb, line 28 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
initialize_variables()
click to toggle source
# File lib/hanzo/modules/install.rb, line 12 def initialize_variables @type = extract_argument(1) end