Module: Envo

Defined in:
lib/envo/cli/installer_bash.rb,
lib/envo.rb,
lib/envo/host.rb,
lib/envo/error.rb,
lib/envo/state.rb,
lib/envo/logger.rb,
lib/envo/cmd_run.rb,
lib/envo/cmd_set.rb,
lib/envo/context.rb,
lib/envo/version.rb,
lib/envo/cli/help.rb,
lib/envo/cmd_copy.rb,
lib/envo/cmd_list.rb,
lib/envo/cmd_path.rb,
lib/envo/cmd_show.rb,
lib/envo/cmd_swap.rb,
lib/envo/cmd_clean.rb,
lib/envo/cmd_reset.rb,
lib/envo/cmd_unset.rb,
lib/envo/cli/runner.rb,
lib/envo/cli_parser.rb,
lib/envo/host_shell.rb,
lib/envo/parsed_cmd.rb,
lib/envo/shell/bash.rb,
lib/envo/val/no_val.rb,
lib/envo/cmd_list_add.rb,
lib/envo/cmd_list_del.rb,
lib/envo/parse_result.rb,
lib/envo/val/list_val.rb,
lib/envo/val/path_val.rb,
lib/envo/script_parser.rb,
lib/envo/shell/win_cmd.rb,
lib/envo/val/string_val.rb,
lib/envo/val/val_builder.rb,
lib/envo/val/path_list_val.rb,
lib/envo/cli/installer_win_cmd.rb

Overview

require ‘open3’

Defined Under Namespace

Modules: Cli, Shell, ValBuilder Classes: CliParser, CmdClean, CmdCopy, CmdList, CmdListAdd, CmdListDel, CmdPath, CmdReset, CmdRun, CmdSet, CmdShow, CmdSwap, CmdUnset, Context, Error, Host, ListVal, Logger, NoVal, ParseResult, ParsedCmd, PathListVal, PathVal, ScriptParser, State, StringVal

Constant Summary collapse

VERSION =
'0.1.2'
VERSION_TYPE =
'alpha'
HostShell =
-> {
  env_shell = ENV['SHELL']
  break Shell::WinCmd if !env_shell
  if env_shell =~ /bash/
    raise Error.new "bash on Windows (msys) is not supported yet" if env_shell =~ /^[a-zA-Z]\:/
    break Shell::Bash
  end
  raise Error.new "Unknown shell! Please report on https://github.com/iboB/envo/issues"
}.()