Sha256: 6d9628f176e301f63c7eeb9af3f23c4812d8a6464d495b315bd9f889e8b0a25c

Contents?: true

Size: 577 Bytes

Versions: 1

Compression:

Stored size: 577 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?

      send "install_#{@type}"
    end

    def initialize_help
      @options.banner = <<-BANNER
Usage: hanzo install TYPE

Available install type:
  remotes — Add git remotes to current repository
BANNER
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hanzo-0.1.0 lib/hanzo/modules/install.rb